| WikiPageGetRedirectTargetAsync Method |
This is preliminary documentation and is subject to change.
If current page is a redirect, tries to get the final target of the redirect.
Namespace: WikiClientLibrary.PagesAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public Task<WikiPage?> GetRedirectTargetAsync()
Public Function GetRedirectTargetAsync As Task(Of WikiPage)
Dim instance As WikiPage
Dim returnValue As Task(Of WikiPage)
returnValue = instance.GetRedirectTargetAsync()
public:
Task<WikiPage^>^ GetRedirectTargetAsync()
member GetRedirectTargetAsync : unit -> Task<WikiPage>
Return Value
TaskWikiPage
A
WikiPage of the target.
OR
null if the page is not a redirect page.
Remarks
The method will create a new
WikiPage instance with the
same
Title of current instance, and invoke
Page.RefreshAsync(PageQueryOptions.ResolveRedirects)
to resolve the redirects.
See Also