MongoCursor(TDocument) Class (original) (raw)

MongoCursorTDocument Class

An object that can be enumerated to fetch the results of a query. The query is not sent to the server until you begin enumerating the results.

Inheritance Hierarchy

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public class MongoCursor : MongoCursor, IEnumerable, IEnumerable

Public Class MongoCursor(Of TDocument) Inherits MongoCursor Implements IEnumerable(Of TDocument), IEnumerable

type MongoCursor<'TDocument> =
class inherit MongoCursor interface IEnumerable<'TDocument> interface IEnumerable end

Type Parameters

TDocument

The type of the documents returned.

The MongoCursorTDocument type exposes the following members.

Constructors

Properties

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public property | BatchSize | Gets or sets the batch size (the number of documents returned per batch). (Inherited from MongoCursor.) | | Public property | Collation | Gets the collation. (Inherited from MongoCursor.) | | Public property | Collection | Gets the collection that is being queried. (Inherited from MongoCursor.) | | Public property | Database | Gets the database that constains the collection that is being queried. (Inherited from MongoCursor.) | | Public property | Fields | Gets or sets the fields that will be returned from the server. (Inherited from MongoCursor.) | | Public property | Flags | Gets or sets the query flags. (Inherited from MongoCursor.) | | Public property | IsFrozen | Gets whether the cursor has been frozen to prevent further changes. (Inherited from MongoCursor.) | | Public property | Limit | Gets or sets the limit on the number of documents to be returned. (Inherited from MongoCursor.) | | Public property | MaxAwaitTime | Gets or sets the maximum await time for TailableAwait cursors. (Inherited from MongoCursor.) | | Public property | Options | Gets or sets the cursor options. See also the individual Set{Option} methods, which are easier to use. (Inherited from MongoCursor.) | | Public property | Query | Gets the query that will be sent to the server. (Inherited from MongoCursor.) | | Public property | ReadConcern | Gets the read concern. (Inherited from MongoCursor.) | | Public property | ReadPreference | Gets or sets the read preference. (Inherited from MongoCursor.) | | Public property | Serializer | Gets the serializer. | | Public property | Server | Gets the server that the query will be sent to. (Inherited from MongoCursor.) | | Public property | Skip | Gets or sets the number of documents the server should skip before returning the rest of the documents. (Inherited from MongoCursor.) |

Top

Methods

Extension Methods

| | Name | Description | | | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Public Extension Method | ContainsAllTDocument | Determines whether a sequence contains all of the specified values. (Defined by LinqToMongo.) | | Public Extension Method | ContainsAnyTDocument | Determines whether a sequence contains any of the specified values. (Defined by LinqToMongo.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, Int32) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, NullableInt32) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, Int64) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, NullableInt64) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, Single) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, NullableSingle) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, Double) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, NullableDouble) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, Decimal) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationPopulationTDocument(FuncTDocument, NullableDecimal) | Overloaded. Computes the population standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, Int32) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, NullableInt32) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, Int64) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, NullableInt64) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, Single) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, NullableSingle) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, Double) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, NullableDouble) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, Decimal) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | StandardDeviationSampleTDocument(FuncTDocument, NullableDecimal) | Overloaded. Computes the sample standard deviation of a sequence of values that are obtained by invoking a transform function on each element of the input sequence. (Defined by MongoEnumerable.) | | Public Extension Method | ToBson | Serializes an object to a BSON byte array. (Defined by BsonExtensionMethods.) | | Public Extension Method | ToBsonDocument | Serializes an object to a BsonDocument. (Defined by BsonExtensionMethods.) | | Public Extension Method | ToJson | Serializes an object to a JSON string. (Defined by BsonExtensionMethods.) |

Top

See Also

Reference