AsyncCursorTDocument Constructor (IChannelSource, CollectionNamespace, BsonDocument, IReadOnlyListTDocument, Int64, BsonDocument, NullableInt32, NullableInt32, IBsonSerializerTDocument, MessageEncoderSettings, NullableTimeSpan) |
Note: This API is now obsolete.
Namespace:
MongoDB.Driver.Core.Operations
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax [ObsoleteAttribute("Use overload without query.")]
public AsyncCursor(
IChannelSource channelSource,
CollectionNamespace collectionNamespace,
BsonDocument query,
IReadOnlyList<TDocument> firstBatch,
long cursorId,
BsonDocument postBatchResumeToken,
Nullable<int> batchSize,
Nullable<int> limit,
IBsonSerializer<TDocument> serializer,
MessageEncoderSettings messageEncoderSettings,
Nullable<TimeSpan> maxTime
)
<ObsoleteAttribute("Use overload without query.")>
Public Sub New (
channelSource As IChannelSource,
collectionNamespace As CollectionNamespace,
query As BsonDocument,
firstBatch As IReadOnlyList(Of TDocument),
cursorId As Long,
postBatchResumeToken As BsonDocument,
batchSize As Nullable(Of Integer),
limit As Nullable(Of Integer),
serializer As IBsonSerializer(Of TDocument),
messageEncoderSettings As MessageEncoderSettings,
maxTime As Nullable(Of TimeSpan)
)
[<ObsoleteAttribute("Use overload without query.")>]
new :
channelSource : IChannelSource *
collectionNamespace : CollectionNamespace *
query : BsonDocument *
firstBatch : IReadOnlyList<'TDocument> *
cursorId : int64 *
postBatchResumeToken : BsonDocument *
batchSize : Nullable<int> *
limit : Nullable<int> *
serializer : IBsonSerializer<'TDocument> *
messageEncoderSettings : MessageEncoderSettings *
maxTime : Nullable<TimeSpan> -> 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. - postBatchResumeToken
- Type: MongoDB.BsonBsonDocument
The post batch resume token. - 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
- Type: SystemNullableTimeSpan
The maxTime for each batch.
See Also