Table of Contents

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

identifier string

The identifier.

documents IBatchableSource<object>

The documents.

documentSerializer IBsonSerializer

The document serializer.

elementNameValidator IElementNameValidator

The element name validator.

maxBatchCount int?

The maximum batch count.

maxDocumentSize int?

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.