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 | |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | BatchSize | Gets or sets the batch size (the number of documents returned per batch). (Inherited from MongoCursor.) |
|
| Collation | Gets the collation. (Inherited from MongoCursor.) |
|
| Collection | Gets the collection that is being queried. (Inherited from MongoCursor.) |
|
| Database | Gets the database that constains the collection that is being queried. (Inherited from MongoCursor.) |
|
| Fields | Gets or sets the fields that will be returned from the server. (Inherited from MongoCursor.) |
|
| Flags | Gets or sets the query flags. (Inherited from MongoCursor.) |
|
| IsFrozen | Gets whether the cursor has been frozen to prevent further changes. (Inherited from MongoCursor.) |
|
| Limit | Gets or sets the limit on the number of documents to be returned. (Inherited from MongoCursor.) |
|
| MaxAwaitTime | Gets or sets the maximum await time for TailableAwait cursors. (Inherited from MongoCursor.) |
|
| Options | Gets or sets the cursor options. See also the individual Set{Option} methods, which are easier to use. (Inherited from MongoCursor.) |
|
| Query | Gets the query that will be sent to the server. (Inherited from MongoCursor.) |
|
| ReadConcern | Gets the read concern. (Inherited from MongoCursor.) |
|
| ReadPreference | Gets or sets the read preference. (Inherited from MongoCursor.) |
|
| Serializer | Gets the serializer. |
|
| Server | Gets the server that the query will be sent to. (Inherited from MongoCursor.) |
|
| Skip | Gets or sets the number of documents the server should skip before returning the rest of the documents. (Inherited from MongoCursor.) |
Methods
Extension Methods
| | Name | Description | |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| | ContainsAllTDocument | Determines whether a sequence contains all of the specified values. (Defined by LinqToMongo.) |
|
| ContainsAnyTDocument | Determines whether a sequence contains any of the specified values. (Defined by LinqToMongo.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| 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.) |
|
| ToBson | Serializes an object to a BSON byte array. (Defined by BsonExtensionMethods.) |
|
| ToBsonDocument | Serializes an object to a BsonDocument. (Defined by BsonExtensionMethods.) |
|
| ToJson | Serializes an object to a JSON string. (Defined by BsonExtensionMethods.) |
See Also