Table of Contents

Class CreateViewOperation

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

Represents a create view operation.

public class CreateViewOperation : IWriteOperation<BsonDocument>
Inheritance
CreateViewOperation
Implements
Inherited Members
Extension Methods

Constructors

CreateViewOperation(DatabaseNamespace, string, string, IEnumerable<BsonDocument>, MessageEncoderSettings)

Initializes a new instance of the CreateCollectionOperation class.

Properties

Collation

Gets or sets the collation.

DatabaseNamespace

Gets the namespace of the database.

MessageEncoderSettings

Gets the message encoder settings.

Pipeline

Gets the pipeline.

ViewName

Gets the name of the view.

ViewOn

Gets the name of the collection that the view is on.

WriteConcern

Gets or sets the write concern.

Methods

Execute(IWriteBinding, CancellationToken)

Executes the operation.

ExecuteAsync(IWriteBinding, CancellationToken)

Executes the operation.