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

# ConnectionRef

> Names a connection for caches and logs.

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

**Implements:** `IEquatable<ConnectionRef>`

## Constructors

```csharp
public ConnectionRef(string Id)
```

Names a connection for caches and logs.

### Parameters

**Id** `string` *required*

The connection's opaque id.

## Properties

**Id** `string` *required*

The connection's opaque id.

## Methods

### Deconstruct()

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

#### Parameters

**Id** `string` *required*

### Equals()

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

#### Parameters

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

#### Parameters

**left** `ConnectionRef` *required*

**right** `ConnectionRef` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `ConnectionRef` *required*

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