Table of Contents

Class RenameCollectionOperation

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

Represents a rename collection operation.

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

Constructors

RenameCollectionOperation(CollectionNamespace, CollectionNamespace, MessageEncoderSettings)

Initializes a new instance of the RenameCollectionOperation class.

Properties

CollectionNamespace

Gets the collection namespace.

DropTarget

Gets or sets a value indicating whether to drop the target collection first if it already exists.

MessageEncoderSettings

Gets the message encoder settings.

NewCollectionNamespace

Gets the new collection namespace.

WriteConcern

Gets or sets the write concern.

Methods

Execute(IWriteBinding, CancellationToken)

Executes the operation.

ExecuteAsync(IWriteBinding, CancellationToken)

Executes the operation.