| WikiaSiteWikiaApiExtensionsFetchUserAsync(WikiaSite, String, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Asynchronously fetches the specified user's information.
Namespace: WikiClientLibrary.Wikia.WikiaApiAssembly: WikiClientLibrary.Wikia (in WikiClientLibrary.Wikia.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task<UserInfo> FetchUserAsync(
this WikiaSite site,
string userName,
CancellationToken cancellationToken
)
<ExtensionAttribute>
Public Shared Function FetchUserAsync (
site As WikiaSite,
userName As String,
cancellationToken As CancellationToken
) As Task(Of UserInfo)
Dim site As WikiaSite
Dim userName As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of UserInfo)
returnValue = site.FetchUserAsync(userName,
cancellationToken)
public:
[ExtensionAttribute]
static Task<UserInfo^>^ FetchUserAsync(
WikiaSite^ site,
String^ userName,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member FetchUserAsync :
site : WikiaSite *
userName : string *
cancellationToken : CancellationToken -> Task<UserInfo>
Parameters
- site WikiaSite
- The site to issue the request.
- userName String
- The user name to be fetched.
- cancellationToken CancellationToken
- A token used to cancel the request.
Return Value
TaskUserInfoA task that returns the requested user information, or
null for inexistent user.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
WikiaSite. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also