| WikiaSiteWikiaApiExtensionsFetchUsersAsync Method |
This is preliminary documentation and is subject to change.
Asynchronously fetches the specified users' information.
Namespace: WikiClientLibrary.Wikia.WikiaApiAssembly: WikiClientLibrary.Wikia (in WikiClientLibrary.Wikia.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static IAsyncEnumerable<UserInfo> FetchUsersAsync(
this WikiaSite site,
IEnumerable<string> userNames,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function FetchUsersAsync (
site As WikiaSite,
userNames As IEnumerable(Of String),
Optional cancellationToken As CancellationToken = Nothing
) As IAsyncEnumerable(Of UserInfo)
Dim site As WikiaSite
Dim userNames As IEnumerable(Of String)
Dim cancellationToken As CancellationToken
Dim returnValue As IAsyncEnumerable(Of UserInfo)
returnValue = site.FetchUsersAsync(userNames,
cancellationToken)
public:
[ExtensionAttribute]
static IAsyncEnumerable<UserInfo^>^ FetchUsersAsync(
WikiaSite^ site,
IEnumerable<String^>^ userNames,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member FetchUsersAsync :
site : WikiaSite *
userNames : IEnumerable<string> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> IAsyncEnumerable<UserInfo>
Parameters
- site WikiaSite
- The site to issue the request.
- userNames IEnumerableString
- The usernames to be fetched.
- cancellationToken CancellationToken (Optional)
[Missing <param name="cancellationToken"/> documentation for "M:WikiClientLibrary.Wikia.WikiaApi.WikiaSiteWikiaApiExtensions.FetchUsersAsync(WikiClientLibrary.Wikia.Sites.WikiaSite,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]
Return Value
IAsyncEnumerableUserInfo
An asynchronous sequence containing the detailed user information.
The usernames are normalized locally to ensure the first character is upper-case. Non-existent usernames are skipped.
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