Click or drag to resize

WikiPageStubFromPageIds Method

This is preliminary documentation and is subject to change.

Construct a sequence of WikiPageStub from the given page IDs.

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax
public static IAsyncEnumerable<WikiPageStub> FromPageIds(
	WikiSite site,
	IEnumerable<int> ids,
	CancellationToken cancellationToken = default
)

Parameters

site  WikiSite
The site in which to query for the pages.
ids  IEnumerableInt32
The page IDs to query.
cancellationToken  CancellationToken  (Optional)

[Missing <param name="cancellationToken"/> documentation for "M:WikiClientLibrary.Pages.WikiPageStub.FromPageIds(WikiClientLibrary.Sites.WikiSite,System.Collections.Generic.IEnumerable{System.Int32},System.Threading.CancellationToken)"]

Return Value

IAsyncEnumerableWikiPageStub
A sequence of WikiPageStub containing the page information.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither site or ids is null.
Remarks
For how the missing pages are handled, see the "remarks" section of WikiPage.
See Also