Click or drag to resize

RevisionsPropertyProvider Class

This is preliminary documentation and is subject to change.

Returns the latest revision of the page. (mw:API:Revisions, MediaWiki 1.8+)
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.Pages.Queries.PropertiesWikiPagePropertyProviderRevisionsPropertyGroup
    WikiClientLibrary.Pages.Queries.PropertiesRevisionsPropertyProvider

Namespace: WikiClientLibrary.Pages.Queries.Properties
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax
public class RevisionsPropertyProvider : WikiPagePropertyProvider<RevisionsPropertyGroup>

The RevisionsPropertyProvider type exposes the following members.

Constructors
 NameDescription
Public methodRevisionsPropertyProviderInitializes a new instance of the RevisionsPropertyProvider class
Top
Properties
 NameDescription
Public propertyFetchContent Gets/sets a value that determines whether to fetch revision content. If set, the maximum limit per API request will be 10 times as low. (Note: If you want HTML rather than wikitext, use action=parse instead.)
Public propertyPropertyName Gets the property name, when this property is needed to be included in the prop= parameter in the MediaWiki API request.
(Overrides WikiPagePropertyProviderTPropertyName)
Public propertySlots Gets/sets the names of the revision slot from which to retrieve the revisions. (MediaWiki 1.32+)
Top
Methods
 NameDescription
Public methodEnumParameters Enumerates the MediaWiki API request parameters for action=query request.
(Overrides WikiPagePropertyProviderTEnumParameters(MediaWikiVersion))
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 methodGetMaxPaginationSize Gets the maximum allowed count of titles in each MediaWiki API request.
(Overrides WikiPagePropertyProviderTGetMaxPaginationSize(MediaWikiVersion, Boolean))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParsePropertyGroup Parses the properties from the givenaction=query JSON response.
(Overrides WikiPagePropertyProviderTParsePropertyGroup(JObject))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
The prop=revisions module has been implemented as RevisionsPropertyProvider and RevisionsGenerator. The former allows you to fetch for the latest revisions for multiple pages, while the latter allows you to enumerate the revisions of a single page.
See Also