IAsyncCursorSourceExtensions.ToEnumerable<TDocument> Method |
Wraps a cursor source in an IEnumerable. Each time GetEnumerator is called a new cursor is fetched from the cursor source.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntaxpublic static IEnumerable<TDocument> ToEnumerable<TDocument>(
this IAsyncCursorSource<TDocument> source,
CancellationToken cancellationToken = null
)
<ExtensionAttribute>
Public Shared Function ToEnumerable(Of TDocument) (
source As IAsyncCursorSource(Of TDocument),
Optional cancellationToken As CancellationToken = Nothing
) As IEnumerable(Of TDocument)
[<ExtensionAttribute>]
static member ToEnumerable :
source : IAsyncCursorSource<'TDocument> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> IEnumerable<'TDocument>
Parameters
- source
- Type: MongoDB.Driver.IAsyncCursorSource<TDocument>
The source. - cancellationToken (Optional)
- Type: Extension Methods (C# Programming Guide).
See Also
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant