VersionSpec.ParseSingleSpec Method (String, String)
Given a version string (without a range specifier), convert it to a VersionSpec object.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
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
- user
Type: System.String
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpec
Returns VersionSpec.
.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.