Click or drag to resize
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.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.4.1
Syntax
public static IEnumerable<TDocument> ToEnumerable<TDocument>(
	this IAsyncCursorSource<TDocument> source,
	CancellationToken cancellationToken = null
)

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