> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# RelationSet

> Relations a holder has at most one of on each object, as C1's EntitlementExclusionGroup : the levels from pull to admin on a repository.

Relations a holder has at most one of on each object, as C1's `EntitlementExclusionGroup`: the levels from pull to admin on a repository.

```csharp
public sealed record RelationSet : IEquatable<RelationSet>
```

**Implements:** `IEquatable<RelationSet>`

## Constructors

```csharp
public RelationSet(string Id, int Rank)
```

Relations a holder has at most one of on each object, as C1's `EntitlementExclusionGroup`: the levels from pull to admin on a repository.

### Parameters

**Id** `string` *required*

The set's id, unique on its kind.

**Rank** `int` *required*

The relation's place in the set, unique in it. A higher rank gives more, so it meets what a lower one would.

## Properties

**Default** `bool` *required*

Whether a holder falls back to this relation when it loses another in the set, which makes the set one a holder of the object always has exactly one of. At most one per set.

**Id** `string` *required*

The set's id, unique on its kind.

**Rank** `int` *required*

The relation's place in the set, unique in it. A higher rank gives more, so it meets what a lower one would.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string Id, out int Rank)
```

#### Parameters

**Id** `string` *required*

**Rank** `int` *required*

### Equals()

```csharp
public bool Equals(RelationSet? other)
```

#### Parameters

**other** `RelationSet` *required*

#### Returns

`bool`

```csharp
public override bool Equals(object? obj)
```

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

```csharp
public override int GetHashCode()
```

#### Returns

`int`

### operator !=()

```csharp
public static bool operator !=(RelationSet? left, RelationSet? right)
```

#### Parameters

**left** `RelationSet` *required*

**right** `RelationSet` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(RelationSet? left, RelationSet? right)
```

#### Parameters

**left** `RelationSet` *required*

**right** `RelationSet` *required*

#### Returns

`bool`

### ToString()

```csharp
public override string ToString()
```

#### Returns

`string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.