Method SetValidator
SetValidator(IMongoQuery)
Sets the validator.
public CollectionOptionsBuilder SetValidator(IMongoQuery validator)
Parameters
validator
IMongoQueryThe validator.
Returns
- CollectionOptionsBuilder
The builder (so method calls can be chained).