# CosmosOptionsValidator&lt;TOptions&gt; Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders.cosmos/orleans.reminders.cosmos.cosmosoptionsvalidator-1/)

## CosmosOptionsValidator&lt;TOptions&gt;(TOptions, string) {#constructor-toptions-string-a97441f9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.reminders.cosmos/orleans.reminders.cosmos.cosmosoptionsvalidator-1/constructors/constructor-toptions-string-a97441f9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptionsValidator.cs#L29-L33)

```csharp
public CosmosOptionsValidator(TOptions options, string name)
```

Initializes a new instance of the `Orleans.Reminders.Cosmos.CosmosOptionsValidator-1` type.

### Parameters

- `options` (`TOptions`): The instance to be validated.
- `name` (`string`): The option name to be validated.
