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.2+447d1d590e6726b7881f750a0a0e42908f3e417e
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