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
WriteRequestTypeThe 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
ConnectionDescriptionThe connection description.
Returns
- bool
true
if the request is retryable; otherwise,false
.