VersionSpec.Parse Method (String, String, String)

Given a version string convert it to an array VersionSpec objects.

If the version specification did not contain a range specifier then this will return an array of size one. Otherwise, an array of size two.

Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)


Public Shared Function Parse ( _
    versionSpec As String, _
    user As String, _
    userDisplay As String _
) As VersionSpec()
public static VersionSpec[] Parse(
    string versionSpec,
    string user,
    string userDisplay
static array<VersionSpec^>^ Parse(
    String^ versionSpec, 
    String^ user, 
    String^ userDisplay
static member Parse : 
        versionSpec:string * 
        user:string * 
        userDisplay:string -> VersionSpec[] 
public static function Parse(
    versionSpec : String, 
    user : String, 
    userDisplay : String
) : VersionSpec[]


  • versionSpec
    Type: System.String

    The version specification to encapsulate.

  • user
    Type: System.String

    The current user (only used by workspace version specs.)

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client.VersionSpec[]
The version specification(s) encapsulated in an array.

.NET Framework Security

See Also


VersionSpec Class

Parse Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace