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

# ScopeBinding

> A grant bound to one resource.

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

**Implements:** `IEquatable<ScopeBinding>`

## Constructors

```csharp
public ScopeBinding(Resource Role, Resource Scope)
```

A grant bound to one resource.

### Parameters

**Role** `Resource` *required*

The role granted.

**Scope** `Resource` *required*

The resource it applies to.

## Properties

**Role** `Resource` *required*

The role granted.

**Scope** `Resource` *required*

The resource it applies to.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out Resource Role, out Resource Scope)
```

#### Parameters

**Role** `Resource` *required*

**Scope** `Resource` *required*

### Equals()

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

#### Parameters

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

#### Parameters

**left** `ScopeBinding` *required*

**right** `ScopeBinding` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `ScopeBinding` *required*

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