Click or drag to resize

MediaWikiVersionParse(String) Method

This is preliminary documentation and is subject to change.

Parses a MediaWiki core version number from its string representation.

Namespace: WikiClientLibrary
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public static MediaWikiVersion Parse(
	string version
)

Parameters

version  String
The version to be parsed.

Return Value

MediaWikiVersion
The parsed version.
Exceptions
ExceptionCondition
ArgumentExceptionversion is null or empty.
FormatExceptionversion is not a valid version expression, such as
  • is null, empty, or whitespace.
  • has more than 3 version components before the first dash, if any.
  • has invalid dev-channel suffix, and suffix truncation is not allowed. See for a list of valid dev-channel suffixes.
  • has invalid numeric version components, including failure to parse as number, or arithmetic overflow.
Remarks
This overload does not allow version truncation.
See Also