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

# OneTrustConfig

> Represents the OneTrust cookie consent integration.

## Definition

**Assembly:** Mintlify.Core.dll

**Namespace:** Mintlify.Core.Models.Integrations

## Syntax

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

## Summary

Represents the OneTrust cookie consent integration.

## Remarks

Configure OneTrust when you use it as your consent management platform.
[OneTrustConfig.DomainScript](https://dotnetdocs.com/api-reference/Mintlify/Core/Models/Integrations/OneTrustConfig.md#domainscript) is required.

## Constructors

### &#x20;.ctor

#### Syntax

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

### &#x20;.ctor Inherited

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

#### Syntax

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

## Properties

### &#x20;CategoryId

Gets or sets the OneTrust cookie category ID used to gate analytics.

#### Syntax

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

#### Property Value

Type: `string?`

### &#x20;DomainScript

Gets or sets the OneTrust domain script identifier.

#### Syntax

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

#### Property Value

Type: `string?`

#### Remarks

This is the required data-domain-script value from the OneTrust snippet.

### &#x20;ScriptSource

Gets or sets an alternate URI for the OneTrust stub script.

#### Syntax

```csharp theme={"dark"}
public string ScriptSource { 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.