 | DiscussionsExtensionsRefreshAsync(IEnumerablePost, PostQueryOptions, CancellationToken) Method |
This is preliminary documentation and is subject to change.
Refreshes the post content from the server.
Namespace: WikiClientLibrary.Wikia.DiscussionsAssembly: WikiClientLibrary.Wikia (in WikiClientLibrary.Wikia.dll) Version: 0.9.0-int.3+0a73c45f0c78941900e328c6c6b819597b665e00
Syntaxpublic static Task RefreshAsync(
this IEnumerable<Post> posts,
PostQueryOptions options,
CancellationToken cancellationToken
)
<ExtensionAttribute>
Public Shared Function RefreshAsync (
posts As IEnumerable(Of Post),
options As PostQueryOptions,
cancellationToken As CancellationToken
) As Task
Dim posts As IEnumerable(Of Post)
Dim options As PostQueryOptions
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = posts.RefreshAsync(options,
cancellationToken)
public:
[ExtensionAttribute]
static Task^ RefreshAsync(
IEnumerable<Post^>^ posts,
PostQueryOptions options,
CancellationToken cancellationToken
)
[<ExtensionAttribute>]
static member RefreshAsync :
posts : IEnumerable<Post> *
options : PostQueryOptions *
cancellationToken : CancellationToken -> Task
Parameters
- posts IEnumerablePost
- The posts to be refreshed.
- options PostQueryOptions
- The options used to fetch the post.
- cancellationToken CancellationToken
- The token used to cancel the operation.
Return Value
TaskUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerablePost. 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).
Remarks
This method will not fetch replies for the
posts.
Replies will remain unchanged after the invocation.
See Also