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

# DeclaredAction

> An action and the object it runs on.

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

**Implements:** `IEquatable<DeclaredAction>`

## Constructors

```csharp
public DeclaredAction(ActionManifest Action, ObjectManifest? On)
```

An action and the object it runs on.

### Parameters

**Action** `ActionManifest` *required*

The action.

**On** `ObjectManifest` *required*

The object, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for an action on the connection.

## Properties

**Action** `ActionManifest` *required*

The action.

**On** `ObjectManifest`

The object, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for an action on the connection.

## Methods

### Deconstruct()

```csharp
public void Deconstruct(out ActionManifest Action, out ObjectManifest? On)
```

#### Parameters

**Action** `ActionManifest` *required*

**On** `ObjectManifest` *required*

### Equals()

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

#### Parameters

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

#### Parameters

**left** `DeclaredAction` *required*

**right** `DeclaredAction` *required*

#### Returns

`bool`

### operator ==()

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

#### Parameters

**left** `DeclaredAction` *required*

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