| WikiSiteSearchApiEndpointAsync Method |
This is preliminary documentation and is subject to change.
Given a site or page URL of a MediaWiki site, try to look for the Api Endpoint URL of it.
Namespace: WikiClientLibrary.SitesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task<string?> SearchApiEndpointAsync(
WikiClient client,
string urlExpression,
CancellationToken cancellationToken = default
)
Public Shared Function SearchApiEndpointAsync (
client As WikiClient,
urlExpression As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of String)
Dim client As WikiClient
Dim urlExpression As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of String)
returnValue = WikiSite.SearchApiEndpointAsync(client,
urlExpression, cancellationToken)
public:
static Task<String^>^ SearchApiEndpointAsync(
WikiClient^ client,
String^ urlExpression,
CancellationToken cancellationToken = CancellationToken()
)
static member SearchApiEndpointAsync :
client : WikiClient *
urlExpression : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<string>
Parameters
- client WikiClient
- WikiClient instance.
- urlExpression String
- URL of MediaWiki site, or any page on that site. It can be with or without protocol prefix.
- cancellationToken CancellationToken (Optional)
- a token used to cancel the operation.
Return Value
TaskStringThe URL of Api Endpoint. OR
null if such search has failed.
Exceptions See Also