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.DriverMongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntaxpublic abstract class MongoCursor : IEnumerable
Public MustInherit Class MongoCursor Implements IEnumerable
[<AbstractClassAttribute>] type MongoCursor = class interface IEnumerable end
The MongoCursor type exposes the following members.
Constructors Properties Name Description BatchSizeGets or sets the batch size (the number of documents returned per batch).
CollationGets the collation.
CollectionGets the collection that is being queried.
DatabaseGets the database that constains the collection that is being queried.
FieldsGets or sets the fields that will be returned from the server.
FlagsGets or sets the query flags.
IsFrozenGets whether the cursor has been frozen to prevent further changes.
LimitGets or sets the limit on the number of documents to be returned.
MaxAwaitTimeGets or sets the maximum await time for TailableAwait cursors.
OptionsGets or sets the cursor options. See also the individual Set{Option} methods, which are easier to use.
QueryGets the query that will be sent to the server.
ReadConcernGets the read concern.
ReadPreferenceGets or sets the read preference.
SerializerGets the serializer.
ServerGets the server that the query will be sent to.
SkipGets or sets the number of documents the server should skip before returning the rest of the documents.
Top Methods Name Description Clone(Type)Creates a clone of the cursor.
Clone(Type, IBsonSerializer)Creates a clone of the cursor.
CloneTDocumentCreates a clone of the cursor.
CloneTDocument(IBsonSerializer)Creates a clone of the cursor.
CountReturns the number of documents that match the query (ignores Skip and Limit, unlike Size which honors them).
Create(Type, MongoCollection, IMongoQuery, ReadPreference, IBsonSerializer) Obsolete.Creates a cursor.
Create(Type, MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer) Obsolete.Creates a cursor.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object.) ExplainReturns an explanation of how the query was executed (instead of the results).
Explain(Boolean)Returns an explanation of how the query was executed (instead of the results).
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) GetHashCodeServes as the default hash function.
(Inherited from Object.) GetTypeGets the
Typeof the current instance.
(Inherited from Object.) IEnumerableGetEnumeratorGets the non-generic enumerator.
MemberwiseCloneCreates a shallow copy of the current
Object.
(Inherited from Object.) SetBatchSizeSets the batch size (the number of documents returned per batch).
SetCollationSets the collation.
SetFields(String)Sets the fields that will be returned from the server.
SetFields(IMongoFields)Sets the fields that will be returned from the server.
SetFlagsSets the query flags.
SetHint(String)Sets the index hint for the query.
SetHint(BsonDocument)Sets the index hint for the query.
SetLimitSets the limit on the number of documents to be returned.
SetMaxSets the max value for the index key range of documents to return (note: the max value itself is excluded from the range). Often combined with SetHint (if SetHint is not used the server will attempt to determine the matching index automatically).
SetMaxAwaitTimeSets the maximum await time for tailable await cursors.
SetMaxScan Obsolete.Sets the maximum number of documents to scan.
SetMaxTimeSets the maximum time the server should spend on this query.
SetMinSets the min value for the index key range of documents to return (note: the min value itself is included in the range). Often combined with SetHint (if SetHint is not used the server will attempt to determine the matching index automatically).
SetOptionSets a cursor option.
SetOptionsSets multiple cursor options. See also the individual Set{Option} methods, which are easier to use.
SetReadPreferenceSets the read preference.
SetSerializerSets the serializer.
SetShowDiskLocSets the $showDiskLoc option.
SetSkipSets the number of documents the server should skip before returning the rest of the documents.
SetSnapshot Obsolete.Sets the $snapshot option.
SetSortOrder(String)Sets the sort order for the server to sort the documents by before returning them.
SetSortOrder(IMongoSortBy)Sets the sort order for the server to sort the documents by before returning them.
SizeReturns the size of the result set (honors Skip and Limit, unlike Count which does not).
ToStringReturns a string that represents the current object.
(Inherited from Object.) Top Extension Methods See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4