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

# GrantFilter

> Which of a field's grants to list.

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

**Implements:** `IEquatable<GrantFilter>`

## Constructors

```csharp
public GrantFilter(IReadOnlyList<EntitlementRef>? Entitlements = null, PrincipalRef? Holder = null, string? Since = null, IReadOnlyList<ObjectRef>? Objects = null)
```

Which of a field's grants to list.

### Parameters

**Entitlements** `IReadOnlyList\<EntitlementRef\>`

**Type:** `IReadOnlyList<EntitlementRef>`

The only entitlements to list, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for every one.

**Holder** `PrincipalRef`

The only holder to list, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for every one.

**Since** `string`

The watermark to list changes after, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for a full read.

**Objects** `IReadOnlyList\<ObjectRef\>`

**Type:** `IReadOnlyList<ObjectRef>`

The only objects to list grants on, at any relation, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for every one.

## Fields

**All** `GrantFilter` *required*

Lists every grant of the field.

## Properties

**Entitlements** `IReadOnlyList\<EntitlementRef\>`

**Type:** `IReadOnlyList<EntitlementRef>`

The only entitlements to list, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for every one.

**Holder** `PrincipalRef`

The only holder to list, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for every one.

**Objects** `IReadOnlyList\<ObjectRef\>`

**Type:** `IReadOnlyList<ObjectRef>`

The only objects to list grants on, at any relation, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for every one.

**Since** `string`

The watermark to list changes after, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for a full read.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out IReadOnlyList<EntitlementRef>? Entitlements, out PrincipalRef? Holder, out string? Since, out IReadOnlyList<ObjectRef>? Objects)
```

#### Parameters

**Entitlements** `IReadOnlyList\<EntitlementRef\>` *required*

**Type:** `IReadOnlyList<EntitlementRef>`

**Holder** `PrincipalRef` *required*

**Since** `string` *required*

**Objects** `IReadOnlyList\<ObjectRef\>` *required*

**Type:** `IReadOnlyList<ObjectRef>`

### Equals()

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

#### Parameters

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

#### Parameters

**left** `GrantFilter` *required*

**right** `GrantFilter` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `GrantFilter` *required*

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