Table of Contents

Method SetValidationLevel

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

SetValidationLevel(DocumentValidationLevel)

Sets the validation level.

public static CollectionOptionsBuilder SetValidationLevel(DocumentValidationLevel validationLevel)

Parameters

validationLevel DocumentValidationLevel

The validation level.

Returns

CollectionOptionsBuilder

The builder (so method calls can be chained).