# CosmosClusteringOptionsValidator Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.cosmos/orleans.clustering.cosmos.cosmosclusteringoptionsvalidator/)

## CosmosClusteringOptionsValidator(CosmosClusteringOptions, string) {#constructor-orleans-clustering-cosmos-cosmosclusteringoptions-string-00c475cf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.cosmos/orleans.clustering.cosmos.cosmosclusteringoptionsvalidator/constructors/constructor-orleans-clustering-cosmos-cosmosclusteringoptions-string-00c475cf/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Clustering.Cosmos/Options/CosmosClusteringOptions.cs#L29-L31)

```csharp
public CosmosClusteringOptionsValidator(CosmosClusteringOptions options, string name)
```

Initializes a new instance of the [CosmosClusteringOptionsValidator](/orleans/docs/api/csharp/microsoft.orleans.clustering.cosmos/orleans.clustering.cosmos.cosmosclusteringoptionsvalidator/) class.

### Parameters

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