BinaryMessageEncoderFactoryGetInsertMessageEncoderTDocument Method |
Gets an encoder for an Insert message.
Namespace: MongoDB.Driver.Core.WireProtocol.Messages.Encoders.BinaryEncodersAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntaxpublic IMessageEncoder GetInsertMessageEncoder<TDocument>(
IBsonSerializer<TDocument> serializer
)
Public Function GetInsertMessageEncoder(Of TDocument) (
serializer As IBsonSerializer(Of TDocument)
) As IMessageEncoder
abstract GetInsertMessageEncoder :
serializer : IBsonSerializer<'TDocument> -> IMessageEncoder
override GetInsertMessageEncoder :
serializer : IBsonSerializer<'TDocument> -> IMessageEncoder
Parameters
- serializer
- Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The serializer.
Type Parameters
- TDocument
- The type of the document.
Return Value
Type:
IMessageEncoderAn encoder.
Implements
IMessageEncoderFactoryGetInsertMessageEncoderTDocument(IBsonSerializerTDocument)
See Also