Compartilhar via


VersionSpec.ParseSingleSpec Method

Converts a version specification string to a VersionSpec object.

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

Syntax

'Declaração
Public Shared Function ParseSingleSpec ( _
    versionSpec As String, _
    user As String _
) As VersionSpec
public static VersionSpec ParseSingleSpec(
    string versionSpec,
    string user
)
public:
static VersionSpec^ ParseSingleSpec(
    String^ versionSpec, 
    String^ user
)
static member ParseSingleSpec : 
        versionSpec:string * 
        user:string -> VersionSpec 
public static function ParseSingleSpec(
    versionSpec : String, 
    user : String
) : VersionSpec

Parameters

  • versionSpec
    Type: System.String
    Version specification to encapsulate.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The encapsulated version specification as an object.

Remarks

The versionSpec string should not have a range specifier.

.NET Framework Security

See Also

Reference

VersionSpec Class

Microsoft.TeamFoundation.VersionControl.Client Namespace