Table of Contents

Class FindOneArgs

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

Represents arguments to the FindOne method.

public class FindOneArgs
Inheritance
FindOneArgs
Inherited Members
Extension Methods

Properties

Collation

Gets or sets the collation.

public Collation Collation { get; set; }

Property Value

Collation

Fields

Gets or sets the fields.

public IMongoFields Fields { get; set; }

Property Value

IMongoFields

Hint

Gets or sets the hint.

public BsonDocument Hint { get; set; }

Property Value

BsonDocument

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

ReadPreference

Gets or sets the read preference.

public ReadPreference ReadPreference { get; set; }

Property Value

ReadPreference

Serializer

Gets or sets the serializer.

public IBsonSerializer Serializer { get; set; }

Property Value

IBsonSerializer

Skip

Gets or sets the skip.

public int? Skip { get; set; }

Property Value

int?

SortBy

Gets or sets the sort order.

public IMongoSortBy SortBy { get; set; }

Property Value

IMongoSortBy