| WikiPageStubFromPageTitles Method |
This is preliminary documentation and is subject to change.
Construct a sequence of
WikiPageStub from the given page titles.
Namespace: WikiClientLibrary.PagesAssembly: 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
)
Public Shared Function FromPageTitles (
site As WikiSite,
titles As IEnumerable(Of String),
Optional cancellationToken As CancellationToken = Nothing
) As IAsyncEnumerable(Of WikiPageStub)
Dim site As WikiSite
Dim titles As IEnumerable(Of String)
Dim cancellationToken As CancellationToken
Dim returnValue As IAsyncEnumerable(Of WikiPageStub)
returnValue = WikiPageStub.FromPageTitles(site,
titles, cancellationToken)
public:
static IAsyncEnumerable<WikiPageStub>^ FromPageTitles(
WikiSite^ site,
IEnumerable<String^>^ titles,
CancellationToken cancellationToken = CancellationToken()
)
static member FromPageTitles :
site : WikiSite *
titles : IEnumerable<string> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> IAsyncEnumerable<WikiPageStub>
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
IAsyncEnumerableWikiPageStubA sequence of
WikiPageStub containing the page information.
Exceptions Remarks For how the missing pages are handled, see the "remarks" section of
WikiPage.
See Also