---
title: "Interface IRelationLoadOption"
slug: "sdk--stylelabs.m.framework.essentials.loadoptions.irelationloadoption"
abstract: ""
---
# Interface IRelationLoadOption

Specifies which relations to load.

## Inherited Members

[ILoadOption.LoadOption](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 interface IRelationLoadOption : ILoadOption
```

## Properties

### Relations

Gets or sets a list of relations 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
IRelationSpecification[] Relations { get; set; }
```

#### Property Value

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

## Methods

### DeepClone()

Creates a deep clone of this instance.

#### Declaration

```csharp
IRelationLoadOption DeepClone()
```

#### Returns

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

### DeepEquals(IRelationLoadOption)

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

#### Declaration

```csharp
bool DeepEquals(IRelationLoadOption other)
```

#### Parameters

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

#### Returns

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