Click or drag to resize

WikiPagePropertyListT Class

This is preliminary documentation and is subject to change.

Represents a list-like sequence parsed from a property of MediaWiki page.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.Generators.PrimitiveWikiPagePropertyListT
    WikiClientLibrary.Generators.PrimitiveWikiPagePropertyGeneratorTItem

Namespace: WikiClientLibrary.Generators.Primitive
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0-int.8+f07259cca53448109bd542f6a3e53c54ddd48d58
Syntax
public abstract class WikiPagePropertyList<T> : IWikiList<T>

Type Parameters

T
The type of item.

The WikiPagePropertyListT type exposes the following members.

Constructors
 NameDescription
Protected methodWikiPagePropertyListT(WikiSite)Initializes a new instance of the WikiPagePropertyListT class
Protected methodWikiPagePropertyListT(WikiSite, WikiPageStub)Initializes a new instance of the WikiPagePropertyListT class
Top
Properties
 NameDescription
Public propertyPageId Gets/sets the page ID from which to get the list-like property value.
Public propertyPageTitle Gets/sets the page title from which to get the list-like property value.
Public propertyPaginationSize Gets/sets maximum items returned per MediaWiki API invocation.
Public propertyPropertyName Gets the name of the property, used as the value of prop parameter in action=query request.
Public propertySiteGets the MediaWiki site this instance applies to.
Top
Methods
 NameDescription
Public methodEnumItemsAsync Asynchronously enumerates all the items in the list.
Public methodEnumListParameters When overridden, fills generator parameters for action=query&prop={PropertyName} request.
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 methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodItemFromJson Parses an item contained in the action=query&prop={PropertyName} JSON response.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Remarks
Some properties of a MediaWiki page are inherently a list e.g. link(see mw:API:Links) that supports pagination, and that thus can be enumerated asynchronously. This class provides basic functionality for enumerating such list-like property values.
See Also