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.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
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