> ## 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.

# CatalogRelation

> One relation a holder can have to an object of a kind, as C1's entitlement on a resource: member of a group, push on a repository.

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

**Implements:** `IEquatable<CatalogRelation>`

## Constructors

```csharp
public CatalogRelation(string Key, string Label)
```

One relation a holder can have to an object of a kind, as C1's entitlement on a resource: member of a group, push on a repository.

### Parameters

**Key** `string` *required*

The vendor's word for it, unique on its object.

**Label** `string` *required*

Its display name.

## Properties

**Description** `string`

A line describing what it lets a holder do.

**Holders** `IReadOnlyList\<string\>` *required*

The account and principal kinds that can hold it, or every kind its fields are grantable to when empty.

**Immutable** `bool` *required*

Whether the vendor keeps who holds it itself, so the host neither grants nor removes it.

**Key** `string` *required*

The vendor's word for it, unique on its object.

**Label** `string` *required*

Its display name.

**ManagedBy** `string`

What keeps who holds it, where the vendor keeps it itself.

**ObjectId** `string`

The vendor's id for the one object that has it, such as a custom role, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when every object of the kind does.

**Set** `RelationSet`

The exclusive set it sits in on each object, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when a holder may hold it beside any other relation.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string Key, out string Label)
```

#### Parameters

**Key** `string` *required*

**Label** `string` *required*

### Equals()

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

#### Parameters

**other** `CatalogRelation` *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 !=(CatalogRelation? left, CatalogRelation? right)
```

#### Parameters

**left** `CatalogRelation` *required*

**right** `CatalogRelation` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `CatalogRelation` *required*

**right** `CatalogRelation` *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.