Table of Contents

Constructor CreateViewOperation

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

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

Initializes a new instance of the CreateCollectionOperation class.

public CreateViewOperation(DatabaseNamespace databaseNamespace, string viewName, string viewOn, IEnumerable<BsonDocument> pipeline, MessageEncoderSettings messageEncoderSettings)

Parameters

databaseNamespace DatabaseNamespace

The name of the database.

viewName string

The name of the view.

viewOn string

The name of the collection that the view is on.

pipeline IEnumerable<BsonDocument>

The pipeline.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.