Click or drag to resize

JsonMessageEncoderFactoryGetInsertMessageEncoderTDocument Method

Gets an encoder for an Insert message.

Namespace:  MongoDB.Driver.Core.WireProtocol.Messages.Encoders.JsonEncoders
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public IMessageEncoder GetInsertMessageEncoder<TDocument>(
	IBsonSerializer<TDocument> serializer
)

Parameters

serializer
Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The serializer.

Type Parameters

TDocument
The type of the document.

Return Value

Type: IMessageEncoder
An encoder.

Implements

IMessageEncoderFactoryGetInsertMessageEncoderTDocument(IBsonSerializerTDocument)
See Also