Click or drag to resize

WikiPageStubFromPageTitles Method

This is preliminary documentation and is subject to change.

Construct a sequence of WikiPageStub from the given page titles.

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static IAsyncEnumerable<WikiPageStub> FromPageTitles(
	WikiSite site,
	IEnumerable<string> titles,
	CancellationToken cancellationToken = default
)

Parameters

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

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

Return Value

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