Table of Contents

Class CreateViewOptionsBuilder

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

A builder for the options used when creating a view.

[BsonSerializer(typeof(CreateViewOptionsBuilder.Serializer))]
public class CreateViewOptionsBuilder : BuilderBase, IConvertibleToBsonDocument, IMongoCreateViewOptions
Inheritance
CreateViewOptionsBuilder
Implements
Inherited Members
Extension Methods

Constructors

CreateViewOptionsBuilder()

Initializes a new instance of the CreateViewOptionsBuilder class.

public CreateViewOptionsBuilder()

Methods

SetCollation(Collation)

Sets the collation.

public CreateViewOptionsBuilder SetCollation(Collation collation)

Parameters

collation Collation

The collation.

Returns

CreateViewOptionsBuilder

The builder (so method calls can be chained).

ToBsonDocument()

Returns the result of the builder as a BsonDocument.

public override BsonDocument ToBsonDocument()

Returns

BsonDocument

A BsonDocument.