This documentation is archived and is not being maintained.

TeamFoundationVersion::Validate Method (String)

Validates the format of the specified string that describes version.

Namespace:  Microsoft.TeamFoundation
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

public:
static bool Validate(
	String^ version
)

Parameters

version
Type: System::String

The string to validate.

Return Value

Type: System::Boolean
True if the specified string is a valid format for describing version; otherwise, false.

A valid version string must be in the format: "MAJOR.MINOR[.BUILD[.REVISION]]". Elements in brackets are optional.

Show: