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

# ContextualHrefConfig

> Represents a custom contextual option destination.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models

## Syntax

```csharp theme={"dark"}
Mintlify.Core.Models.ContextualHrefConfig
```

## Summary

Represents a custom contextual option destination.

## Remarks

May be a URL string or an object with [ContextualHrefConfig.Base](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/ContextualHrefConfig.md#base) and [ContextualHrefConfig.Query](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/ContextualHrefConfig.md#query).
See [https://www.mintlify.com/docs/ai/contextual-menu](https://www.mintlify.com/docs/ai/contextual-menu).

## Constructors

### &#x20;.ctor

#### Syntax

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

### &#x20;.ctor Inherited

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

#### Syntax

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

## Properties

### &#x20;Base

Gets or sets the base URL when using a query object.

#### Syntax

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

#### Property Value

Type: `string?`

### &#x20;Query

Gets or sets query-string pairs appended to [ContextualHrefConfig.Base](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/ContextualHrefConfig.md#base).

#### Syntax

```csharp theme={"dark"}
public System.Collections.Generic.List<Mintlify.Core.Models.ContextualHrefQueryConfig> Query { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.List<Mintlify.Core.Models.ContextualHrefQueryConfig>?`

### &#x20;Url

Gets or sets the URL when the href is a simple string.

#### Syntax

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

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