Table of Contents

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 BsonDocument

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

The connection description.

Returns

bool

true if the request is retryable; otherwise, false.