| 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.WikibaseAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static IAsyncEnumerable<string?> IdsFromSiteLinksAsync(
WikiSite site,
string siteName,
IEnumerable<string> titles,
CancellationToken cancellationToken = default
)
Public Shared Function IdsFromSiteLinksAsync (
site As WikiSite,
siteName As String,
titles As IEnumerable(Of String),
Optional cancellationToken As CancellationToken = Nothing
) As IAsyncEnumerable(Of String)
Dim site As WikiSite
Dim siteName As String
Dim titles As IEnumerable(Of String)
Dim cancellationToken As CancellationToken
Dim returnValue As IAsyncEnumerable(Of String)
returnValue = Entity.IdsFromSiteLinksAsync(site,
siteName, titles, cancellationToken)
public:
static IAsyncEnumerable<String^>^ IdsFromSiteLinksAsync(
WikiSite^ site,
String^ siteName,
IEnumerable<String^>^ titles,
CancellationToken cancellationToken = CancellationToken()
)
static member IdsFromSiteLinksAsync :
site : WikiSite *
siteName : string *
titles : IEnumerable<string> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> IAsyncEnumerable<string>
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 See Also