Namespace:
MongoDB.Driver.Core.WireProtocol.Messages
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntaxpublic InsertMessage(
int requestId,
CollectionNamespace collectionNamespace,
IBsonSerializer<TDocument> serializer,
BatchableSource<TDocument> documentSource,
int maxBatchCount,
int maxMessageSize,
bool continueOnError
)
Public Sub New (
requestId As Integer,
collectionNamespace As CollectionNamespace,
serializer As IBsonSerializer(Of TDocument),
documentSource As BatchableSource(Of TDocument),
maxBatchCount As Integer,
maxMessageSize As Integer,
continueOnError As Boolean
)
new :
requestId : int *
collectionNamespace : CollectionNamespace *
serializer : IBsonSerializer<'TDocument> *
documentSource : BatchableSource<'TDocument> *
maxBatchCount : int *
maxMessageSize : int *
continueOnError : bool -> InsertMessage
Parameters
- requestId
- Type: SystemInt32
The request identifier. - collectionNamespace
- Type: MongoDB.DriverCollectionNamespace
The collection namespace. - serializer
- Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The serializer. - documentSource
- Type: MongoDB.Driver.Core.MiscBatchableSourceTDocument
The document source. - maxBatchCount
- Type: SystemInt32
The maximum batch count. - maxMessageSize
- Type: SystemInt32
Maximum size of the message. - continueOnError
- Type: SystemBoolean
if set to true the server should continue on error.
See Also