Click or drag to resize

WikiPagePropertyGenerator Class

This is preliminary documentation and is subject to change.

The base classes for commonly-used WikiPage generator that implements WikiPagePropertyGenerator<TItem>, where TItem is WikiPageStub.
Inheritance Hierarchy

Namespace: WikiClientLibrary.Generators.Primitive
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public abstract class WikiPagePropertyGenerator : WikiPagePropertyGenerator<WikiPageStub>

The WikiPagePropertyGenerator type exposes the following members.

Constructors
 NameDescription
Protected methodWikiPagePropertyGenerator(WikiSite)Initializes a new instance of the WikiPagePropertyGenerator class
Protected methodWikiPagePropertyGenerator(WikiSite, WikiPageStub)Initializes a new instance of the WikiPagePropertyGenerator class
Top
Properties
 NameDescription
Protected propertyDistinctGeneratedPages When using the default implementation of EnumPagesAsync(IWikiPageQueryProvider), determines whether to remove duplicate page results generated from generator results.
(Inherited from WikiPagePropertyGenerator<TItem>)
Public propertyGeneratorName
(Inherited from WikiPagePropertyGenerator<TItem>)
Public propertyPageId Gets/sets the page ID from which to get the list-like property value.
(Inherited from WikiPagePropertyList<T>)
Public propertyPageTitle Gets/sets the page title from which to get the list-like property value.
(Inherited from WikiPagePropertyList<T>)
Public propertyPaginationSize Gets/sets maximum items returned per MediaWiki API invocation.
(Inherited from WikiPagePropertyList<T>)
Public propertyPropertyName Gets the name of the property, used as the value of prop parameter in action=query request.
(Inherited from WikiPagePropertyList<T>)
Public propertySiteGets the MediaWiki site this instance applies to.
(Inherited from WikiPagePropertyList<T>)
Top
Methods
 NameDescription
Public methodEnumGeneratorParameters Fills generator parameters for action=query&generator= request.
(Inherited from WikiPagePropertyGenerator<TItem>)
Public methodEnumItemsAsync Asynchronously enumerates all the items in the list.
(Inherited from WikiPagePropertyList<T>)
Public methodEnumListParameters When overridden, fills generator parameters for action=query&prop={PropertyName} request.
(Inherited from WikiPagePropertyList<T>)
Public methodEnumPagesAsync() Asynchronously generate the sequence of pages.
(Inherited from WikiPagePropertyGenerator<TItem>)
Public methodEnumPagesAsync(IWikiPageQueryProvider) Asynchronously generates the sequence of pages.
(Inherited from WikiPagePropertyGenerator<TItem>)
Public methodEnumPagesAsync(PageQueryOptions) Asynchronously generates the sequence of pages.
(Inherited from WikiPagePropertyGenerator<TItem>)
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.
(Overrides WikiPagePropertyList<T>.ItemFromJson(JsonNode, JsonObject))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from WikiPagePropertyList<T>)
Top
Remarks

For a more generic implementations for page-property-based MediaWiki generator, or implementations returning a sequence where the item type is not WikiPageStub, please derive your generator from WikiPagePropertyGenerator<TItem>.

See Also