Click or drag to resize

AsyncCursorTDocument Constructor (IChannelSource, CollectionNamespace, BsonDocument, IReadOnlyListTDocument, Int64, NullableInt32, NullableInt32, IBsonSerializerTDocument, MessageEncoderSettings, NullableTimeSpan)

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public AsyncCursor(
	IChannelSource channelSource,
	CollectionNamespace collectionNamespace,
	BsonDocument query,
	IReadOnlyList<TDocument> firstBatch,
	long cursorId,
	Nullable<int> batchSize,
	Nullable<int> limit,
	IBsonSerializer<TDocument> serializer,
	MessageEncoderSettings messageEncoderSettings,
	Nullable<TimeSpan> maxTime = null
)

Parameters

channelSource
Type: MongoDB.Driver.Core.BindingsIChannelSource
The channel source.
collectionNamespace
Type: MongoDB.DriverCollectionNamespace
The collection namespace.
query
Type: MongoDB.BsonBsonDocument
The query.
firstBatch
Type: System.Collections.GenericIReadOnlyListTDocument
The first batch.
cursorId
Type: SystemInt64
The cursor identifier.
batchSize
Type: SystemNullableInt32
The size of a batch.
limit
Type: SystemNullableInt32
The limit.
serializer
Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The serializer.
messageEncoderSettings
Type: MongoDB.Driver.Core.WireProtocol.Messages.EncodersMessageEncoderSettings
The message encoder settings.
maxTime (Optional)
Type: SystemNullableTimeSpan
The maxTime for each batch.
See Also