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.3+0a73c45f0c78941900e328c6c6b819597b665e00
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