Click or drag to resize

EntityIdsFromSiteLinksAsync Method

This is preliminary documentation and is subject to change.

Asynchronously gets the entity IDs with specified sequence of titles on the specified site.

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

Parameters

site  WikiSite
the Wikibase repository site.
siteName  String
the site name of the sitelinks.
titles  IEnumerableString
the article titles on the site siteName to check for corresponding entity IDs.
cancellationToken  CancellationToken  (Optional)
a token used to cancel the operation.

Return Value

IAsyncEnumerableString
A asynchronous sequence of entity IDs (e.g. Q1234) in the identical order with titles. If one or more entities are missing, the corresponding entity ID will be null.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither site, siteName, or titles is null.
See Also