Click or drag to resize

WikiPage Class

This is preliminary documentation and is subject to change.

Represents a page on MediaWiki site.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.PagesWikiPage

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0-int.8+f07259cca53448109bd542f6a3e53c54ddd48d58
Syntax
public class WikiPage

The WikiPage type exposes the following members.

Constructors
 NameDescription
Public methodWikiPage(WikiSite, Int32) Initializes a new instance of WikiPage from page ID.
Public methodWikiPage(WikiSite, String) Initializes a new instance of WikiPage from page title.
Public methodWikiPage(WikiSite, String, Int32) Initializes a new instance of WikiPage from page title.
Top
Properties
 NameDescription
Public propertyContent Gets / Sets the content of the page.
Public propertyContentLength Content length, in bytes.
Public propertyContentModel Content model. (MediaWiki 1.22)
Public propertyExists Gets whether the page exists. For category, gets whether the categories description page exists.
Public propertyId Id of the page.
Public propertyIsRedirect Determines the last version of the page is a redirect page.
Public propertyIsSpecialPage Gets whether the page is a Special page.
Public propertyLastFileRevision Gets the latest file revision information, if applicable.
Public propertyLastRevision Gets the latest revision of the page.
Public propertyLastRevisionId Gets the id of last revision. In some cases, this property has non-zero value while LastRevision is null. See UpdateContentAsync(String) for more information.
Public propertyLastTouched Page touched timestamp. It can be later than the timestamp of the last revision.
Public propertyNamespaceId Namespace id of the page.
Public propertyPageLanguage Page language. (MediaWiki 1.24)
Public propertyPageStub Gets an initialized WikiPageStub from the current instance.
Public propertyPropertyGroups Gets a read-only view of all the fetched property groups attached to this page.
Public propertyProtections 
Public propertyRedirectPath Gets a list indicating the titles passed (except the final destination) when trying to resolve the redirects in the last RefreshAsync invocation.
Public propertyRestrictionTypes Applicable protection types. (MediaWiki 1.25)
Public propertySite Gets the Site the page is on.
Public propertyTitle Gets the normalized full title of the page.
Top
Methods
 NameDescription
Public methodAddSectionAsync Edits the main content of the current page, using specified new page content and other options. (MediaWiki 1.16)
Protected methodAssertExists 
Public methodDeleteAsync(String) Deletes the current page.
Public methodDeleteAsync(String, AutoWatchBehavior) Deletes the current page.
Public methodDeleteAsync(String, AutoWatchBehavior, CancellationToken) Deletes the current page.
Public methodEditAsync(WikiPageEditOptions) Edits the main content of the current page, using specified new page content and other options. (MediaWiki 1.16)
Public methodEditAsync(WikiPageEditOptions, String, String) 
Public methodEditSectionAsync Edits the specified section of the current page, using specified new section content and other options. (MediaWiki 1.16)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPropertyGroup(Type) Gets the property group of specified type that is attached to this page.
Public methodGetPropertyGroupT Gets the property group of specified type that is attached to this page.
Public methodGetRedirectTargetAsync If current page is a redirect, tries to get the final target of the redirect.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDisambiguationAsync Determines whether the existing page is a disambiguation page.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMoveAsync(String) Moves (renames) a page. (MediaWiki 1.12)
Public methodMoveAsync(String, String) Moves (renames) a page. (MediaWiki 1.12)
Public methodMoveAsync(String, String, PageMovingOptions) Moves (renames) a page. (MediaWiki 1.12)
Public methodMoveAsync(String, String, PageMovingOptions, AutoWatchBehavior, CancellationToken) Moves (renames) a page. (MediaWiki 1.12)
Protected methodOnLoadPageInfo 
Public methodPurgeAsync Asynchronously purges the current page.
Public methodPurgeAsync(PagePurgeOptions) Asynchronously purges the current page with the given options.
Public methodPurgeAsync(PagePurgeOptions, CancellationToken) Asynchronously purges the current page with the given options.
Public methodRefreshAsync Fetch information for the page. This overload will not fetch content.
Public methodRefreshAsync(IWikiPageQueryProvider) Fetch information for the page.
Public methodRefreshAsync(PageQueryOptions) Fetch information for the page.
Public methodRefreshAsync(IWikiPageQueryProvider, CancellationToken) Fetch information for the page.
Public methodRefreshAsync(PageQueryOptions, CancellationToken) Fetch information for the page.
Protected methodRequiresTitle 
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Public methodUpdateContentAsync(String)Obsolete.
Submits content contained in Content, making edit to the page. (MediaWiki 1.16)
Public methodUpdateContentAsync(String, Boolean)Obsolete.
Submits content contained in Content, making edit to the page. (MediaWiki 1.16)
Public methodUpdateContentAsync(String, Boolean, Boolean)Obsolete.
Submits content contained in Content, making edit to the page. (MediaWiki 1.16)
Public methodUpdateContentAsync(String, Boolean, Boolean, AutoWatchBehavior)Obsolete.
Submits content contained in Content, making edit to the page. (MediaWiki 1.16)
Public methodUpdateContentAsync(String, Boolean, Boolean, AutoWatchBehavior, CancellationToken)Obsolete.
Submits content contained in Content, making edit to the page. (MediaWiki 1.16)
Top
Operators
 NameDescription
Public operatorStatic member(WikiPage to WikiPageStub) Implicitly converts the WikiPage instance into PageStub.
Top
Extension Methods
 NameDescription
Public Extension MethodCreateCategoriesGenerator Creates a CategoriesGenerator instance from the specified page, which enumerates the categories used on the page.
(Defined by WikiPageExtensions)
Public Extension MethodCreateFilesGenerator Creates a FilesGenerator instance from the specified page, which generates files from all used files on the page.
(Defined by WikiPageExtensions)
Public Extension MethodCreateLinksGenerator Creates a LinksGenerator instance from the specified page, which generates pages from all links on the page.
(Defined by WikiPageExtensions)
Public Extension MethodCreateRevisionsGenerator Creates a RevisionsGenerator instance from the specified page, which enumerates the sequence of revisions on the page.
(Defined by WikiPageExtensions)
Public Extension MethodCreateTransclusionsGenerator Creates a TransclusionsGenerator instance from the specified page, which generates pages from all pages (typically templates) transcluded in the page.
(Defined by WikiPageExtensions)
Top
See Also