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

# EntitlementField

> An entitlement with its declaring object.

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

**Implements:** `IEquatable<EntitlementField>`

## Constructors

```csharp
public EntitlementField(ObjectManifest Owner, EntitlementsFieldManifest Field)
```

An entitlement with its declaring object.

### Parameters

**Owner** `ObjectManifest` *required*

The declaring object.

**Field** `EntitlementsFieldManifest` *required*

The entitlement field.

## Properties

**Field** `EntitlementsFieldManifest` *required*

The entitlement field.

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

**Owner** `ObjectManifest` *required*

The declaring object.

**Shape** `EntitlementShape` *required*

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out ObjectManifest Owner, out EntitlementsFieldManifest Field)
```

#### Parameters

**Owner** `ObjectManifest` *required*

**Field** `EntitlementsFieldManifest` *required*

### Equals()

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

#### Parameters

**other** `EntitlementField` *required*

#### Returns

`bool`

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

#### Parameters

**obj** `object` *required*

#### Returns

`bool`

### GetHashCode()

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

#### Returns

`int`

### GrantOf()

```csharp
public Grant GrantOf(PrincipalRef holder, string value)
```

Reads one value of the field as the grant of it a holder has.

#### Parameters

**holder** `PrincipalRef` *required*

**value** `string` *required*

#### Returns

`Grant`

### operator !=()

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

#### Parameters

**left** `EntitlementField` *required*

**right** `EntitlementField` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `EntitlementField` *required*

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