Click or drag to resize

IMessageEncoderFactoryGetInsertMessageEncoderTDocument Method

Gets an encoder for an Insert message.

Namespace:  MongoDB.Driver.Core.WireProtocol.Messages.Encoders
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
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.
See Also