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