---
title: "Class RelationChange"
slug: "scripting--stylelabs.m.scripting.types.v1_0.changetracking.changeset.relationchange"
abstract: ""
---
# Class RelationChange

Represents a change on a relation.

## Inheritance

object

RelationChange

## Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0ChangeTrackingChangeSet

## Assembly: Stylelabs.M.Scripting.Types.dll

## Syntax

```csharp
public class RelationChange
```

## Properties

### Cardinality

Gets or sets the cardinality of the relation.

#### Declaration

```csharp
public RelationCardinality Cardinality { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| RelationCardinality |  |

### Ids

Gets or sets the current values on the relation.

#### Declaration

```csharp
public List<long> Ids { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| List<>long |  |

### InheritsSecurity

Gets or sets the change on the inheritsSecurity. This will be null if the relation is not a child relation or when InheritsSecurity was not dirty.

#### Declaration

```csharp
public SystemPropertyChange InheritsSecurity { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [SystemPropertyChange](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.changetracking.changeset.systempropertychange.html) |  |

### Name

Gets or sets the name on of the relation.

#### Declaration

```csharp
public string Name { get; set; }
```

#### Property Value

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

### NewValues

Gets or sets the new values on the relation.

#### Declaration

```csharp
public List<long> NewValues { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| List<>long |  |

### RemovedValues

Gets or sets the removed values from the relation.

#### Declaration

```csharp
public List<long> RemovedValues { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| List<>long |  |

### [Role](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.resources.base.role.html)

Gets or sets the role of the relation.

#### Declaration

```csharp
public RelationRole Role { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| RelationRole |  |
