Click or drag to resize

WikiSite Class

This is preliminary documentation and is subject to change.

Represents a MediaWiki site.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.SitesWikiSite
    WikiClientLibrary.Wikia.SitesWikiaSite

Namespace: WikiClientLibrary.Sites
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class WikiSite : IWikiClientLoggable, IWikiClientAsyncInitialization

The WikiSite type exposes the following members.

Constructors
 NameDescription
Public methodWikiSite(IWikiClient, String) Initializes a WikiSite instance with the specified API endpoint.
Public methodWikiSite(IWikiClient, SiteOptions) Initializes a WikiSite instance with the specified settings.
Public methodWikiSite(IWikiClient, SiteOptions, String, String) Initializes a WikiSite instance with the specified settings and optional login before fetching for site information.
Top
Properties
 NameDescription
Public propertyAccountAssertionFailureHandler A handler used to re-login when account assertion fails.
Public propertyAccountInfo Gets the current user's account information.
Public propertyApiEndpoint The endpoint URL for MediaWiki API.
Public propertyExtensions Gets a collection of installed extensions on this MediaWiki site.
Public propertyInitialization A task that indicates the asynchronous initialization status of this instance.
Public propertyInterwikiMap Gets the interwiki map information on this wiki site.
Public propertyLogger Replaces the logger factory of the specified instance.
Public propertyMagicWords Gets a list of magic words and their aliases on this MediaWiki site. (MW 1.14+)
Public propertyModificationThrottler A throttler used to enforce the speed limitation when performing edit/move/delete operations.
Public propertyNamespaces Gets a collection of namespaces used on this MediaWiki site.
Protected propertyOptions Gets the options applied to the current instance.
Public propertySiteInfo Gets the basic site information.
Public propertyWikiClient Gets the MediaWiki API client used to perform the requests.
Top
Methods
 NameDescription
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 methodGetMessageAsync(String) Get the content of MediaWiki interface message.
Public methodGetMessageAsync(String, CancellationToken) Get the content of MediaWiki interface message.
Public methodGetMessagesAsync(IEnumerableString) Get the content of some or all MediaWiki interface messages.
Public methodGetMessagesAsync(IEnumerableString, CancellationToken) Get the content of some or all MediaWiki interface messages.
Public methodGetStatisticsAsync Gets the statistical information of the MediaWiki site.
Public methodGetStatisticsAsync(CancellationToken) Gets the statistical information of the MediaWiki site.
Public methodGetTokenAsync(String) Request a token for operation.
Public methodGetTokenAsync(String, Boolean) Request a token for operation.
Public methodGetTokenAsync(String, CancellationToken) Request a token for operation.
Public methodGetTokenAsync(String, Boolean, CancellationToken) Request a token for operation.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInvokeMediaWikiApiAsync(WikiRequestMessage, CancellationToken) Invokes MediaWiki API and gets JSON result.
Public methodInvokeMediaWikiApiAsync(WikiRequestMessage, Boolean, CancellationToken) Invokes MediaWiki API and gets JSON result.
Public methodInvokeMediaWikiApiAsyncT(WikiRequestMessage, IWikiResponseMessageParserT, Boolean, CancellationToken) Invokes MediaWiki API and gets JSON result.
Public methodLoginAsync(String, String) Logins into the wiki site.
Public methodLoginAsync(String, String, String) Logins into the wiki site.
Public methodLoginAsync(String, String, String, CancellationToken) Logins into the wiki site.
Public methodLogoutAsync Logouts from the wiki site.
Public methodLogoutAsync(Boolean) Logouts from the wiki site.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOpenSearchAsync(String) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodOpenSearchAsync(String, Int32) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodOpenSearchAsync(String, OpenSearchOptions) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodOpenSearchAsync(String, Int32, OpenSearchOptions) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodOpenSearchAsync(String, Int32, Int32, OpenSearchOptions) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodOpenSearchAsync(String, Int32, OpenSearchOptions, CancellationToken) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodOpenSearchAsync(String, Int32, Int32, OpenSearchOptions, CancellationToken) Performs an opensearch and get results, often used for search box suggestions. (MediaWiki 1.25 or OpenSearch extension)
Public methodRefreshAccountInfoAsync Refreshes user account information.
Public methodRefreshSiteInfoAsync Refreshes site information.
Public methodStatic memberSearchApiEndpointAsync Given a site or page URL of a MediaWiki site, try to look for the Api Endpoint URL of it.
Protected methodSendLogoutRequestAsync Directly sends a logout request. This method will be invoked by LogoutAsync(Boolean).
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Extension Methods
 NameDescription
Public Extension MethodBeginActionScope Invokes BeginScopeTState(TState) with the current action(method) name and parameters.
(Defined by WikiLoggingHelper)
Public Extension MethodBeginActionScope
(Defined by WikiLoggingHelper)
Public Extension MethodBeginActionScope Invokes BeginScopeTState(TState) on the Logger with the current action(method) name and parameters.
(Defined by WikiLoggingHelper)
Public Extension MethodBeginActionScope
(Defined by WikiLoggingHelper)
Public Extension MethodBeginActionScope Invokes BeginScopeTState(TState) on the Logger with the current action(method) name and parameters.
(Defined by WikiLoggingHelper)
Public Extension MethodExecuteCargoQueryAsync Executes a Cargo query and retrieves the response rows.
(Defined by CargoWikiSiteExtensions)
Public Extension MethodExecuteCargoQueryAsync Executes a Cargo query and retrieves the response rows.
(Defined by CargoWikiSiteExtensions)
Public Extension MethodParseContentAsync Parsing the specific page content and/or summary, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseContentAsync Parsing the specific page content and/or summary, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseContentAsync Parsing the specific page content and/or summary, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseContentAsync Parsing the specific page content and/or summary, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParsePageAsync Parsing the specific page, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseRevisionAsync Parsing the specific page revision, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseRevisionAsync Parsing the specific page revision, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseRevisionAsync Parsing the specific page revision, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodParseRevisionAsync Parsing the specific page revision, gets HTML and more information. (MediaWiki 1.12)
(Defined by WikiSiteExtensions)
Public Extension MethodScribuntoExecuteLuaAsyncT Evaluates an ad-hoc Lua module with the specified module content in Scribunto Lua console, and gets the returned value.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoExecuteLuaAsyncT Evaluates an ad-hoc Lua module with the specified module content in Scribunto Lua console, and gets the returned value.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoExecuteLuaAsyncT Evaluates an ad-hoc Lua module with the specified module content in Scribunto Lua console, and gets the returned value.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoExecuteLuaAsyncT Evaluates an ad-hoc Lua module with the specified module content in Scribunto Lua console, and gets the returned value.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and gets the module content.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and gets the module content.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and gets the module content.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and gets the module content.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and gets the module content.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and gets the module content.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodScribuntoLoadDataAsyncT Imports the Lua module with the specified name and evaluates the specified Lua code with it.
(Defined by ScribuntoWikiSiteExtensions)
Public Extension MethodUploadAsync Asynchronously uploads a file in this title.
(Defined by WikiSiteExtensions)
Public Extension MethodUploadAsync Asynchronously uploads a file in this title.
(Defined by WikiSiteExtensions)
Public Extension MethodUploadAsync Asynchronously uploads a file in this title.
(Defined by WikiSiteExtensions)
Top
Remarks

For FANDOM/Wikia specific site access, use WikiaSite instead of this class.

See Also