| WikiPageExtensionsRefreshAsync(IEnumerableWikiPage, IWikiPageQueryProvider, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Asynchronously fetch information for a sequence of pages.
Namespace: WikiClientLibrary.PagesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task RefreshAsync(
this IEnumerable<WikiPage> pages,
IWikiPageQueryProvider options,
CancellationToken cancellationToken
)
<ExtensionAttribute>
Public Shared Function RefreshAsync (
pages As IEnumerable(Of WikiPage),
options As IWikiPageQueryProvider,
cancellationToken As CancellationToken
) As Task
Dim pages As IEnumerable(Of WikiPage)
Dim options As IWikiPageQueryProvider
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = pages.RefreshAsync(options,
cancellationToken)
public:
[ExtensionAttribute]
static Task^ RefreshAsync(
IEnumerable<WikiPage^>^ pages,
IWikiPageQueryProvider^ options,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member RefreshAsync :
pages : IEnumerable<WikiPage> *
options : IWikiPageQueryProvider *
cancellationToken : CancellationToken -> Task
Parameters
- pages IEnumerableWikiPage
- A sequence of pages to be refreshed.
- options IWikiPageQueryProvider
- Provides options when performing the query.
- cancellationToken CancellationToken
- The cancellation token that will be checked prior to completing the returned task.
Return Value
TaskUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableWikiPage. 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 Remarks
It's recommended that pages is a list or a subset of a list
that is hold by caller, because this method will not return the refreshed pages.
See Also