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

# ReadTarget.Grants

> The grants of one entitlement field, answered as a page of grants.

```csharp
public sealed record ReadTarget.Grants : ReadTarget, IEquatable<ReadTarget>, IEquatable<ReadTarget.Grants>
```

**Extends:** `ReadTarget`

**Implements:** `IEquatable<ReadTarget>`, `IEquatable<Grants>`

## Constructors

```csharp
public Grants(string Relation)
```

The grants of one entitlement field, answered as a page of grants.

### Parameters

**Relation** `string` *required*

The entitlement field's key.

## Properties

**EqualityContract** `Type` *required*

**Filter** `GrantFilter` *required*

Which grants to list.

**HoldersOf** `IReadOnlyList\<string\>`

The values whose holders to read, answered as who holds each, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) to list grants.

**Relation** `string` *required*

The entitlement field's key.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string Relation)
```

#### Parameters

**Relation** `string` *required*

### Equals()

```csharp
public override sealed bool Equals(ReadTarget? other)
```

#### Parameters

**other** `ReadTarget` *required*

#### Returns

`bool`

```csharp
public bool Equals(ReadTarget.Grants? other)
```

#### Parameters

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

#### Parameters

**left** `Grants` *required*

**right** `Grants` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(ReadTarget.Grants? left, ReadTarget.Grants? right)
```

#### Parameters

**left** `Grants` *required*

**right** `Grants` *required*

#### Returns

`bool`

### PrintMembers()

```csharp
protected override bool PrintMembers(StringBuilder builder)
```

#### Parameters

**builder** `StringBuilder` *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.