| 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.WikibaseAssembly: 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
)
Public Shared Function IdFromSiteLinkAsync (
site As WikiSite,
siteName As String,
title As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of String)
Dim site As WikiSite
Dim siteName As String
Dim title As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of String)
returnValue = Entity.IdFromSiteLinkAsync(site,
siteName, title, cancellationToken)
public:
static Task<String^>^ IdFromSiteLinkAsync(
WikiSite^ site,
String^ siteName,
String^ title,
CancellationToken cancellationToken = CancellationToken()
)
static member IdFromSiteLinkAsync :
site : WikiSite *
siteName : string *
title : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<string>
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
TaskStringcorresponding entity ID (e.g.
Q1234), or
null if no such entity can be found.
Exceptions See Also