Click or drag to resize

EntityIdFromSiteLinkAsync 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 Task<string?> IdFromSiteLinkAsync(
	WikiSite site,
	string siteName,
	string title,
	CancellationToken cancellationToken = default
)

Parameters

site  WikiSite
The Wikibase repository site.
siteName  String
The site name of the sitelink.
title  String
The article title on the site siteName to check for corresponding entity ID.
cancellationToken  CancellationToken  (Optional)
a token used to cancel the operation.

Return Value

TaskString
corresponding entity ID (e.g. Q1234), or null if no such entity can be found.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither site, siteName, or title is null.
See Also