Click or drag to resize

MediaWikiVersion Structure

This is preliminary documentation and is subject to change.

Represents a MediaWiki core version number.
Inheritance Hierarchy
SystemObject
  SystemValueType
    WikiClientLibraryMediaWikiVersion

Namespace: WikiClientLibrary
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public readonly struct MediaWikiVersion : IEquatable<MediaWikiVersion>, 
	IComparable<MediaWikiVersion>, IComparable

The MediaWikiVersion type exposes the following members.

Constructors
 NameDescription
Public methodMediaWikiVersion(Int16, Int16) Initializes a new instance with major and minor versions.
Public methodMediaWikiVersion(Int16, Int16, Int16) Initializes a new instance with major, minor, revision versions.
Public methodMediaWikiVersion(Int16, Int16, Int16, MediaWikiDevChannel) Initializes a new instance with major, minor, revision versions and dev-channel.
Public methodMediaWikiVersion(Int16, Int16, MediaWikiDevChannel, Int16) Initializes a new instance with major, minor versions and dev-version.
Public methodMediaWikiVersion(Int16, Int16, Int16, MediaWikiDevChannel, Int16) Initializes a new instance with major, minor, revision versions and dev-version.
Top
Properties
 NameDescription
Public propertyDevChannel Development channel.
Public propertyDevVersion Version in development channel.
Public propertyMajor Major version.
Public propertyMinor Minor version.
Public propertyRevision Revision number.
Public propertyStatic memberZero Gets the default zero value of MediaWikiVersion, i.e. v0.0.0.
Top
Methods
 NameDescription
Public methodAbove(Int16, Int16)Determines whether the version is equal to or above than the specified official release version.
Public methodAbove(Int16, Int16, Int16)Determines whether the version is equal to or above than the specified official release version.
Public methodAbove(Int16, Int16, MediaWikiDevChannel, Int16)Determines whether the version is equal to or above than the specified version.
Public methodAbove(Int16, Int16, Int16, MediaWikiDevChannel, Int16)Determines whether the version is equal to or above than the specified version.
Public methodCompareTo(MediaWikiVersion)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(Object)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(MediaWikiVersion)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIn(Int16)Determines whether the version is in the specified range.
Public methodIn(Range)Determines whether the version is in the specified range.
Public methodIn(Int16, Int16)Determines whether the version is in the specified range.
Public methodIn(Int16, Range)Determines whether the version is in the specified range.
Public methodIn(Int16, Int16, Int16)Determines whether the version is in the specified range.
Public methodIn(Int16, Int16, Range)Determines whether the version is in the specified range.
Public methodStatic memberParse(String) Parses a MediaWiki core version number from its string representation.
Public methodStatic memberParse(String, Boolean) Parses a MediaWiki core version number from its string representation.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodStatic memberTryParse(String, MediaWikiVersion) Tries to parse a MediaWiki core version number from its string representation.
Public methodStatic memberTryParse(String, Boolean, MediaWikiVersion) Tries to parse a MediaWiki core version number from its string representation.
Top
Operators
Remarks

MediaWiki version number has the following format

major.minor.revision[-devChannel[.devVersion]]

where devChannel can be, in the order of release, wmf, alpha, beta, and rc.

See Also