---
title: "Interface IResource"
slug: "sdk--stylelabs.m.sdk.contracts.base.iresource"
abstract: ""
---
# Interface IResource

Describes a resource in M.

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsBase

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IResource
```

## Properties

### CreatedBy

Gets the id of the user who created this resource. null if it has not been created.

#### Declaration

```csharp
long? CreatedBy { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| long |  |

### CreatedOn

Gets the date on which this resource was created. null if it has not been created.

#### Declaration

```csharp
DateTime? CreatedOn { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| DateTime |  |

### ModifiedBy

Gets the id of the user who modified this resource. null if it has not been created.

#### Declaration

```csharp
long? ModifiedBy { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| long |  |

### ModifiedOn

Gets the date on which this resource was modified. null if it has not been created.

#### Declaration

```csharp
DateTime? ModifiedOn { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| DateTime |  |
