Table of Contents

Class WriteRequest

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

Represents a request to write something to the database.

[Serializable]
public abstract class WriteRequest
Inheritance
WriteRequest
Derived
Inherited Members

Constructors

WriteRequest(WriteRequestType)

Initializes a new instance of the WriteRequest class.

protected WriteRequest(WriteRequestType requestType)

Parameters

requestType WriteRequestType

The request type.

Properties

CorrelationId

Gets or sets the correlation identifier.

public int? CorrelationId { get; set; }

Property Value

int?

RequestType

Gets the request type.

public WriteRequestType RequestType { get; }

Property Value

WriteRequestType

The request type.

Methods

IsRetryable(ConnectionDescription)

Determines whether the request is retryable on a given connection.

public abstract bool IsRetryable(ConnectionDescription connectionDescription)

Parameters

connectionDescription ConnectionDescription

The connection description.

Returns

bool

true if the request is retryable; otherwise, false.