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.0.1
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