Table of Contents

Class FindAndModifyArgs

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents options for the FindAndModify command.

public class FindAndModifyArgs
Inheritance
FindAndModifyArgs
Inherited Members
Extension Methods

Properties

BypassDocumentValidation

Gets or sets a value indicating whether to bypass document validation.

public bool? BypassDocumentValidation { get; set; }

Property Value

bool?

A value indicating whether to bypass document validation.

Collation

Gets or sets the collation.

public Collation Collation { get; set; }

Property Value

Collation

The collation.

Fields

Gets or sets the fields specification.

public IMongoFields Fields { get; set; }

Property Value

IMongoFields

MaxTime

Gets or sets the max time.

public TimeSpan? MaxTime { get; set; }

Property Value

TimeSpan?

Query

Gets or sets the query.

public IMongoQuery Query { get; set; }

Property Value

IMongoQuery

SortBy

Gets or sets the sort specification.

public IMongoSortBy SortBy { get; set; }

Property Value

IMongoSortBy

Update

Gets or sets the update specification.

public IMongoUpdate Update { get; set; }

Property Value

IMongoUpdate

Upsert

Gets or sets a value indicating whether FindAndModify should upsert.

public bool Upsert { get; set; }

Property Value

bool

VersionReturned

Gets or sets the version of the document returned.

public FindAndModifyDocumentVersion? VersionReturned { get; set; }

Property Value

FindAndModifyDocumentVersion?