Click or drag to resize

WikiPageStub Structure

This is preliminary documentation and is subject to change.

Contains basic information for identifying a page.
Inheritance Hierarchy
SystemObject
  SystemValueType
    WikiClientLibrary.PagesWikiPageStub

Namespace: WikiClientLibrary.Pages
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0-int.8+f07259cca53448109bd542f6a3e53c54ddd48d58
Syntax
public readonly struct WikiPageStub : IEquatable<WikiPageStub>

The WikiPageStub type exposes the following members.

Constructors
 NameDescription
Public methodWikiPageStub(Int32) Initializes a new instance of WikiPageStub.
Public methodWikiPageStub(String) Initializes a new instance of WikiPageStub.
Public methodWikiPageStub(String, Int32) Initializes a new instance of WikiPageStub.
Public methodWikiPageStub(Int32, String, Int32) Initializes a new instance of WikiPageStub.
Top
Properties
 NameDescription
Public propertyHasId Gets a value that indicates whether Id contains page ID information.
Public propertyHasNamespaceId Gets a value that indicates whether Id contains page namespace ID information.
Public propertyHasTitle Gets a value that indicates whether Title contains page title information.
Public propertyIdGets the page ID.
Public propertyIsEmpty Checks whether the current structure does not represent an (existent or missing) page.
Public propertyIsInvalidChecks whether the structure represents a invalid page.
Public propertyIsMissingChecks whether the page is confirmed as missing.
Public propertyIsSpecialChecks whether the structure represents a Special page.
Public propertyNamespaceIdGets the namespace ID of the page.
Public propertyTitleGets the full title of the page.
Top
Methods
 NameDescription
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(WikiPageStub)Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberFromPageIds Construct a sequence of WikiPageStub from the given page IDs.
Public methodStatic memberFromPageTitles Construct a sequence of WikiPageStub from the given page titles.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberNewInvalidPage 
Public methodStatic memberNewMissingPage(Int32) 
Public methodStatic memberNewMissingPage(String, Int32) 
Public methodStatic memberNewSpecialPage(String, Int32) 
Public methodStatic memberNewSpecialPage(String, Int32, Boolean) 
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Top
Operators
Fields
 NameDescription
Public fieldStatic memberEmpty An WikiPageStub that represents no page. This is the default value of the structure.
Public fieldStatic memberInvalidPageIdMaskThe Id value used for invalid page.
Public fieldStatic memberMissingPageIdMaskThe Id value used for missing page.
Public fieldStatic memberMissingPageTitleThe Title value used for missing page.
Public fieldStatic memberSpecialPageIdMaskThe Id value used for Special page.
Public fieldStatic memberUnknownNamespaceIdThe NamespaceId used when the constructor do not have namespace information about the page.
Top
Remarks

Depending on the given information, the structure may contain page ID, page name, or both. If the owner does not know part of the information, these properties can be 0 and null respectively.

This structure can also represent missing (or inexistent) pages. A missing page has either a page ID or a page name, not both. For the missing page with the given page ID, its Title should be MissingPageTitle; for the missing page with the given page title, the Id should be . You can use IsMissing property to check for missing pages.

Since this structure can be implicitly converted from String (page title) and Int32 (page ID), you can use literal page title or page ID in the place where WikiPageStub is needed.

See Also