Click or drag to resize

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.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax
public Task<WikiPage?> GetRedirectTargetAsync()

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