Table of Contents

Method SetValidator

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

SetValidator(IMongoQuery)

Sets the validator.

public CollectionOptionsBuilder SetValidator(IMongoQuery validator)

Parameters

validator IMongoQuery

The validator.

Returns

CollectionOptionsBuilder

The builder (so method calls can be chained).