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.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
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