Class InsertRequest
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a request to insert a document.
public sealed class InsertRequest : WriteRequest
- Inheritance
-
InsertRequest
- Inherited Members
Constructors
InsertRequest(BsonDocument)
Initializes a new instance of the InsertRequest class.
public InsertRequest(BsonDocument document)
Parameters
document
BsonDocumentThe document.
Properties
Document
Gets or sets the document.
public BsonDocument Document { get; }
Property Value
- BsonDocument
The document.
Methods
IsRetryable(ConnectionDescription)
Determines whether the request is retryable on a given connection.
public override bool IsRetryable(ConnectionDescription connectionDescription)
Parameters
connectionDescription
ConnectionDescriptionThe connection description.
Returns
- bool
true
if the request is retryable; otherwise,false
.