VersionSpec.Parse Method (String, String, String)
Given a version string convert it to an array of 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.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Shared Function Parse ( _
versionSpec As String, _
userDisplay As String, _
userUnique As String _
) As VersionSpec()
public static VersionSpec[] Parse(
string versionSpec,
string userDisplay,
string userUnique
)
public:
static array<VersionSpec^>^ Parse(
String^ versionSpec,
String^ userDisplay,
String^ userUnique
)
static member Parse :
versionSpec:string *
userDisplay:string *
userUnique:string -> VersionSpec[]
public static function Parse(
versionSpec : String,
userDisplay : String,
userUnique : String
) : VersionSpec[]
Parameters
- versionSpec
Type: System.String
- userDisplay
Type: System.String
- userUnique
Type: System.String
Return Value
Type: array<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.