Wiki |
This is preliminary documentation and is subject to change.
The WikiPage type exposes the following members.
| Name | Description | |
|---|---|---|
| WikiPage(WikiSite, Int64) | Initializes a new instance of WikiPage from page ID. | |
| WikiPage(WikiSite, String) | Initializes a new instance of WikiPage from page title. | |
| WikiPage(WikiSite, String, Int32) | Initializes a new instance of WikiPage from page title. |
| Name | Description | |
|---|---|---|
| Content | Gets the content of the page. | |
| ContentLength | Content length, in bytes. | |
| ContentModel | Content model. (MediaWiki 1.22) | |
| Exists | Gets whether the page exists. For category, gets whether the categories description page exists. | |
| Id | Id of the page. | |
| IsRedirect | Determines the last version of the page is a redirect page. | |
| IsSpecialPage | Gets whether the page is a Special page. | |
| LastFileRevision | Gets the latest file revision information, if applicable. | |
| LastRevision | Gets the latest revision of the page. | |
| LastRevisionId | Gets the id of last revision. In some cases, this property has non-zero value while LastRevision is null. See EditAsync(WikiPageEditOptions) for more information. | |
| LastTouched | Page touched timestamp. It can be later than the timestamp of the last revision. | |
| NamespaceId | Namespace id of the page. | |
| PageLanguage | Page language. (MediaWiki 1.24) | |
| PageStub | Gets an initialized WikiPageStub from the current instance. | |
| PropertyGroups | Gets a read-only view of all the fetched property groups attached to this page. | |
| Protections | ||
| RedirectPath | Gets a list indicating the titles passed (except the final destination) when trying to resolve the redirects in the last RefreshAsync invocation. | |
| RestrictionTypes | Applicable protection types. (MediaWiki 1.25) | |
| Site | Gets the Site the page is on. | |
| Title | Gets the normalized full title of the page. |
| Name | Description | |
|---|---|---|
| AddSectionAsync | Edits the main content of the current page, using specified new page content and other options. (MediaWiki 1.16) | |
| AssertExists | ||
| DeleteAsync(String) | Deletes the current page. | |
| DeleteAsync(String, AutoWatchBehavior) | Deletes the current page. | |
| DeleteAsync(String, AutoWatchBehavior, CancellationToken) | Deletes the current page. | |
| EditAsync | Edits the main content of the current page, using specified new page content and other options. (MediaWiki 1.16) | |
| EditSectionAsync | Edits the specified section of the current page, using specified new section content and other options. (MediaWiki 1.16) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetPropertyGroup(Type) | Gets the property group of specified type that is attached to this page. | |
| GetPropertyGroupT | Gets the property group of specified type that is attached to this page. | |
| GetRedirectTargetAsync | If current page is a redirect, tries to get the final target of the redirect. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsDisambiguationAsync | Determines whether the existing page is a disambiguation page. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| MoveAsync(String) | Moves (renames) a page. (MediaWiki 1.12) | |
| MoveAsync(String, String) | Moves (renames) a page. (MediaWiki 1.12) | |
| MoveAsync(String, String, PageMovingOptions) | Moves (renames) a page. (MediaWiki 1.12) | |
| MoveAsync(String, String, PageMovingOptions, AutoWatchBehavior, CancellationToken) | Moves (renames) a page. (MediaWiki 1.12) | |
| OnLoadPageInfo | ||
| PurgeAsync | Asynchronously purges the current page. | |
| PurgeAsync(PagePurgeOptions) | Asynchronously purges the current page with the given options. | |
| PurgeAsync(PagePurgeOptions, CancellationToken) | Asynchronously purges the current page with the given options. | |
| RefreshAsync | Fetch information for the page. This overload will not fetch content. | |
| RefreshAsync(IWikiPageQueryProvider) | Fetch information for the page. | |
| RefreshAsync(PageQueryOptions) | Fetch information for the page. | |
| RefreshAsync(IWikiPageQueryProvider, CancellationToken) | Fetch information for the page. | |
| RefreshAsync(PageQueryOptions, CancellationToken) | Fetch information for the page. | |
| RequiresTitle | ||
| ToString | Returns a string that represents the current object. (Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| (WikiPage to WikiPageStub) | Implicitly converts the WikiPage instance into PageStub. |
| Name | Description | |
|---|---|---|
| CreateCategoriesGenerator |
Creates a CategoriesGenerator instance from the specified page,
which enumerates the categories used on the page.
(Defined by WikiPageExtensions) | |
| CreateFilesGenerator |
Creates a FilesGenerator instance from the specified page,
which generates files from all used files on the page.
(Defined by WikiPageExtensions) | |
| CreateLinksGenerator |
Creates a LinksGenerator instance from the specified page,
which generates pages from all links on the page.
(Defined by WikiPageExtensions) | |
| CreateRevisionsGenerator |
Creates a RevisionsGenerator instance from the specified page,
which enumerates the sequence of revisions on the page.
(Defined by WikiPageExtensions) | |
| CreateTransclusionsGenerator |
Creates a TransclusionsGenerator instance from the specified page,
which generates pages from all pages (typically templates) transcluded in the page.
(Defined by WikiPageExtensions) |