Table of Contents

Method SetValidationAction

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

SetValidationAction(DocumentValidationAction)

Sets the validation action.

public CollectionOptionsBuilder SetValidationAction(DocumentValidationAction validationAction)

Parameters

validationAction DocumentValidationAction

The validation action.

Returns

CollectionOptionsBuilder

The builder (so method calls can be chained).