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

# WriteChange.Grants

> Adds and removes grants on one entitlement field, answered with a grant outcome.

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

**Extends:** `WriteChange`

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

## Constructors

```csharp
public Grants(string Object, string Id, string Relation, IReadOnlyList<string> Add, IReadOnlyList<string> Remove)
```

Adds and removes grants on one entitlement field, answered with a grant outcome.

### Parameters

**Object** `string` *required*

The holder's manifest object.

**Id** `string` *required*

The holder's id.

**Relation** `string` *required*

The entitlement field's key.

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

The values to grant.

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

The values to take away.

## Properties

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

The values to grant.

**EqualityContract** `Type` *required*

**Id** `string` *required*

The holder's id.

**Object** `string` *required*

The holder's manifest object.

**Relation** `string` *required*

The entitlement field's key.

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

The values to take away.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out string Object, out string Id, out string Relation, out IReadOnlyList<string> Add, out IReadOnlyList<string> Remove)
```

#### Parameters

**Object** `string` *required*

**Id** `string` *required*

**Relation** `string` *required*

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

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

### Equals()

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

#### Parameters

**other** `WriteChange` *required*

#### Returns

`bool`

```csharp
public bool Equals(WriteChange.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 !=(WriteChange.Grants? left, WriteChange.Grants? right)
```

#### Parameters

**left** `Grants` *required*

**right** `Grants` *required*

#### Returns

`bool`

### operator ==()

```csharp
public static bool operator ==(WriteChange.Grants? left, WriteChange.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.