MercurialCommandBase<T>.

RequiresVersion(Version, string) Method

Summary

This method will check the current client version and throw a System.NotSupportedException if the current client version is older than the required one.
Assembly
Mercurial.Net.dll
Namespace
Mercurial
Containing Type
MercurialCommandBase<T>

Syntax

public void RequiresVersion(Version requiredVersion, string whatRequiresTheSpecifiedVersion)

Parameters

Name Type Description
requiredVersion Version The version of the client required for the command, property, method, etc.
whatRequiresTheSpecifiedVersion string A text message that identifies the item that requires the version. Will be part of the exception message as "The XYZ requires version A.B.C...".

Return Value

Type Description
void