VersionSpec.ParseSingleSpec Method (String, String, String)
Given a version string (without a range specifier), convert it to a VersionSpec object.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Shared Function ParseSingleSpec ( _
versionSpec As String, _
user As String, _
userDisplay As String _
) As VersionSpec
public static VersionSpec ParseSingleSpec(
string versionSpec,
string user,
string userDisplay
)
public:
static VersionSpec^ ParseSingleSpec(
String^ versionSpec,
String^ user,
String^ userDisplay
)
static member ParseSingleSpec :
versionSpec:string *
user:string *
userDisplay:string -> VersionSpec
public static function ParseSingleSpec(
versionSpec : String,
user : String,
userDisplay : String
) : VersionSpec
Parameters
versionSpec
Type: System.Stringversion specification to encapsulate
user
Type: System.Stringthe current user's unique name (only used by workspace version specs)
userDisplay
Type: System.Stringthe current user's display name (only used by workspace version specs)
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
The version specification encapsulated in an object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.