AsyncCursorTDocument Constructor (IChannelSource, CollectionNamespace, BsonValue, IReadOnlyListTDocument, Int64, NullableInt32, NullableInt32, IBsonSerializerTDocument, MessageEncoderSettings, NullableTimeSpan) |
Namespace:
MongoDB.Driver.Core.Operations
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax public AsyncCursor(
IChannelSource channelSource,
CollectionNamespace collectionNamespace,
BsonValue comment,
IReadOnlyList<TDocument> firstBatch,
long cursorId,
int? batchSize,
int? limit,
IBsonSerializer<TDocument> serializer,
MessageEncoderSettings messageEncoderSettings,
TimeSpan? maxTime = null
)
Public Sub New (
channelSource As IChannelSource,
collectionNamespace As CollectionNamespace,
comment As BsonValue,
firstBatch As IReadOnlyList(Of TDocument),
cursorId As Long,
batchSize As Integer?,
limit As Integer?,
serializer As IBsonSerializer(Of TDocument),
messageEncoderSettings As MessageEncoderSettings,
Optional maxTime As TimeSpan? = Nothing
)
new :
channelSource : IChannelSource *
collectionNamespace : CollectionNamespace *
comment : BsonValue *
firstBatch : IReadOnlyList<'TDocument> *
cursorId : int64 *
batchSize : Nullable<int> *
limit : Nullable<int> *
serializer : IBsonSerializer<'TDocument> *
messageEncoderSettings : MessageEncoderSettings *
?maxTime : Nullable<TimeSpan>
(* Defaults:
let _maxTime = defaultArg maxTime null
*)
-> AsyncCursor
Parameters
- channelSource
- Type: MongoDB.Driver.Core.BindingsIChannelSource
The channel source. - collectionNamespace
- Type: MongoDB.DriverCollectionNamespace
The collection namespace. - comment
- Type: MongoDB.BsonBsonValue
The comment. - 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