Class Type1CommandMessageSection
- Namespace
- MongoDB.Driver.Core.WireProtocol.Messages
- Assembly
- MongoDB.Driver.Core.dll
Represents a Type 1 CommandMessage section.
public abstract class Type1CommandMessageSection : CommandMessageSection
- Inheritance
-
Type1CommandMessageSection
- Derived
-
Type1CommandMessageSection<TDocument>
- Inherited Members
Constructors
Type1CommandMessageSection(string, IBatchableSource<object>, IBsonSerializer, IElementNameValidator, int?, int?)
Initializes a new instance of the Type1CommandMessageSection<TDocument> class.
public Type1CommandMessageSection(string identifier, IBatchableSource<object> documents, IBsonSerializer documentSerializer, IElementNameValidator elementNameValidator, int? maxBatchCount, int? maxDocumentSize)
Parameters
identifierstringThe identifier.
documentsIBatchableSource<object>The documents.
documentSerializerIBsonSerializerThe document serializer.
elementNameValidatorIElementNameValidatorThe element name validator.
maxBatchCountint?The maximum batch count.
maxDocumentSizeint?Maximum size of the document.
Properties
DocumentSerializer
Gets the document serializer.
public IBsonSerializer DocumentSerializer { get; }
Property Value
- IBsonSerializer
The document serializer.
DocumentType
Gets the type of the document.
public abstract Type DocumentType { get; }
Property Value
- Type
The type of the document.
Documents
Gets the documents.
public IBatchableSource<object> Documents { get; }
Property Value
- IBatchableSource<object>
The documents.
ElementNameValidator
Gets the element name validator.
public IElementNameValidator ElementNameValidator { get; }
Property Value
- IElementNameValidator
The element name validator.
Identifier
Gets the identifier.
public string Identifier { get; }
Property Value
- string
The identifier.
MaxBatchCount
Gets the maximum batch count.
public int? MaxBatchCount { get; }
Property Value
- int?
The maximum batch count.
MaxDocumentSize
Gets the maximum size of the document.
public int? MaxDocumentSize { get; }
Property Value
- int?
The maximum size of the document.
PayloadType
Gets the type of the payload.
public override PayloadType PayloadType { get; }
Property Value
- PayloadType
The type of the payload.