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
DatabaseNamespaceThe name of the database.
viewName
stringThe name of the view.
viewOn
stringThe name of the collection that the view is on.
pipeline
IEnumerable<BsonDocument>The pipeline.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.