> ## Documentation Index
> Fetch the complete documentation index at: https://si.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# FormOptionDefinition

> One allowed value on an [FormFieldType.Enum](/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/Elicitations/FormFieldType#enum) or [FormFieldType.Multi](/mcpessentials/a...

## Definition

**Assembly:** CloudNimble.McpEssentials.Core.dll

**Namespace:** CloudNimble.McpEssentials.Core.Tasks.Elicitations

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.McpEssentials.Core.Tasks.Elicitations.FormOptionDefinition
```

## Summary

One allowed value on an [FormFieldType.Enum](https://si.easyaf.dev/api-reference/CloudNimble/McpEssentials/Core/Tasks/Elicitations/FormFieldType#enum) or [FormFieldType.Multi](https://si.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/Elicitations/FormFieldType.md#multi) field.

## Constructors

### &#x20;.ctor

Initializes an option.

#### Syntax

```csharp theme={"dark"}
public FormOptionDefinition(string value, string title = null, bool selected = false)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `value` | `string` | The wire value. |
| `title` | `string?` | An optional display title. |
| `selected` | `bool` | [`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) when this value is the (or a) default. |
| Written as `Selected="true"` on the compact island. | | |

#### Exceptions

| Exception | Description |
| - | - |
| `ArgumentException` | Thrown when *value* is empty. |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;Selected

Gets whether this option is selected by default.

#### Syntax

```csharp theme={"dark"}
public bool Selected { get; }
```

#### Property Value

Type: `bool`

### &#x20;Title

Gets the display title, or [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the value is untitled.

#### Syntax

```csharp theme={"dark"}
public string Title { get; }
```

#### Property Value

Type: `string?`

### &#x20;Value

Gets the wire value.

#### Syntax

```csharp theme={"dark"}
public string Value { get; }
```

#### Property Value

Type: `string`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.