VersionSpec.ParseVersionedFileSpec Method (String, String, String%, array<VersionSpec[]%)
Parse a versioned file spec from the "filename;version" form.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Shared Sub ParseVersionedFileSpec ( _
spec As String, _
user As String, _
<OutAttribute> ByRef fileName As String, _
<OutAttribute> ByRef versions As VersionSpec() _
)
'Usage
Dim spec As String
Dim user As String
Dim fileName As String
Dim versions As VersionSpec()
VersionSpec.ParseVersionedFileSpec(spec, _
user, fileName, versions)
public static void ParseVersionedFileSpec(
string spec,
string user,
out string fileName,
out VersionSpec[] versions
)
public:
static void ParseVersionedFileSpec(
String^ spec,
String^ user,
[OutAttribute] String^% fileName,
[OutAttribute] array<VersionSpec^>^% versions
)
public static function ParseVersionedFileSpec(
spec : String,
user : String,
fileName : String,
versions : VersionSpec[]
)
Parameters
spec
Type: System.StringThe versioned file spec to parse.
user
Type: System.StringThe current user (only used by workspace version specs).
fileName
Type: System.String%Returned file name.
versions
Type: array<Microsoft.TeamFoundation.VersionControl.Client.VersionSpec[]%Returned VersionSpec array.
.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.