---
title: "Class PropertyLoadOption"
slug: "sdk--stylelabs.m.framework.essentials.loadoptions.propertyloadoption"
abstract: ""
---
# Class PropertyLoadOption

Specifies which properties to load.

## Inheritance

object

PropertyLoadOption

## Implements

[IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html)

[ILoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.iloadoption.html)

## Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class PropertyLoadOption : IPropertyLoadOption, ILoadOption
```

## Constructors

### PropertyLoadOption()

Initializes a new instance of the [PropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.propertyloadoption.html) class. Defaults to LoadOption.None .

#### Declaration

```csharp
public PropertyLoadOption()
```

### PropertyLoadOption(IEnumerable<string>)

Initializes a new instance of the [PropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.propertyloadoption.html) class.

#### Declaration

```csharp
public PropertyLoadOption(IEnumerable<string> propertyNames)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>string | propertyNames | Property names. |

### PropertyLoadOption(LoadOption)

Initializes a new instance of the [PropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.propertyloadoption.html) class.

#### Declaration

```csharp
public PropertyLoadOption(LoadOption loadOption)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html) | loadOption | A [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.propertyloadoption.html). |

### PropertyLoadOption(params string\[\])

Initializes a new instance of the [PropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.propertyloadoption.html) class.

#### Declaration

```csharp
public PropertyLoadOption(params string[] propertyNames)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | propertyNames | Property names. |

## Properties

### All

Gets all properties.

#### Declaration

```csharp
public static IPropertyLoadOption All { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) |  |

### [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html)

Gets or sets the load option.

#### Declaration

```csharp
public LoadOption LoadOption { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html) |  |

### None

Gets no properties.

#### Declaration

```csharp
public static IPropertyLoadOption None { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) |  |

### Properties

Gets or sets a list of property names (case insensitive) that need to be loaded. This is only useful when [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html) is [Custom](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html).

#### Declaration

```csharp
public string[] Properties { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

## Methods

### DeepClone()

Creates a deep clone of this instance.

#### Declaration

```csharp
public IPropertyLoadOption DeepClone()
```

#### Returns

| Type | Description |
| --- | --- |
| [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) | The property load option. |

### DeepEquals(IPropertyLoadOption)

Checks if this instance of [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) is equal to `other`.

#### Declaration

```csharp
public bool DeepEquals(IPropertyLoadOption other)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) | other | The property load option. |

#### Returns

| Type | Description |
| --- | --- |
| bool | langword_csharp_True if the instances are equal; otherwise langword_csharp_False. |

### Implements

[IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html)

[ILoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.iloadoption.html)
