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)

Syntax

'Declaration
Public Shared Function Validate ( _
    version As String _
) As Boolean
public static bool Validate(
    string version
)
public:
static bool Validate(
    String^ version
)
static member Validate : 
        version:string -> bool 
public static function Validate(
    version : String
) : boolean

Parameters

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

TeamFoundationVersion Class

Validate Overload

Microsoft.TeamFoundation Namespace