Table of Contents

Operator implicit operator

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

implicit operator UpdateDefinition<TDocument>(BsonDocument)

Performs an implicit conversion from BsonDocument to UpdateDefinition<TDocument>.

public static implicit operator UpdateDefinition<TDocument>(BsonDocument document)

Parameters

document BsonDocument

The document.

Returns

UpdateDefinition<TDocument>

The result of the conversion.

implicit operator UpdateDefinition<TDocument>(string)

Performs an implicit conversion from string to UpdateDefinition<TDocument>.

public static implicit operator UpdateDefinition<TDocument>(string json)

Parameters

json string

The JSON string.

Returns

UpdateDefinition<TDocument>

The result of the conversion.

implicit operator UpdateDefinition<TDocument>(PipelineDefinition<TDocument, TDocument>)

Performs an implicit conversion from PipelineDefinition<TInput, TOutput> to UpdateDefinition<TDocument>.

public static implicit operator UpdateDefinition<TDocument>(PipelineDefinition<TDocument, TDocument> pipeline)

Parameters

pipeline PipelineDefinition<TDocument, TDocument>

The pipeline.

Returns

UpdateDefinition<TDocument>

The result of the conversion.