AsyncCursorTDocument Constructor |
Namespace: MongoDB.Driver.Core.OperationsAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.0.1
Syntax public AsyncCursor(
IChannelSource channelSource,
CollectionNamespace collectionNamespace,
BsonDocument query,
IReadOnlyList<TDocument> firstBatch,
long cursorId,
int batchSize,
int limit,
IBsonSerializer<TDocument> serializer,
MessageEncoderSettings messageEncoderSettings
)
Public Sub New (
channelSource As IChannelSource,
collectionNamespace As CollectionNamespace,
query As BsonDocument,
firstBatch As IReadOnlyList(Of TDocument),
cursorId As Long,
batchSize As Integer,
limit As Integer,
serializer As IBsonSerializer(Of TDocument),
messageEncoderSettings As MessageEncoderSettings
)
new :
channelSource : IChannelSource *
collectionNamespace : CollectionNamespace *
query : BsonDocument *
firstBatch : IReadOnlyList<'TDocument> *
cursorId : int64 *
batchSize : int *
limit : int *
serializer : IBsonSerializer<'TDocument> *
messageEncoderSettings : MessageEncoderSettings -> AsyncCursor
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: SystemInt32
The size of a batch. - limit
- Type: SystemInt32
The limit. - serializer
- Type: MongoDB.Bson.SerializationIBsonSerializerTDocument
The serializer. - messageEncoderSettings
- Type: MongoDB.Driver.Core.WireProtocol.Messages.EncodersMessageEncoderSettings
The message encoder settings.
See Also