共用方式為


ChangesetVersionSpec.ParseChangesetNumber Method

Parses the string as a changeset number. Throws an exception if the changeset number is not a valid changeset integer.

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

Syntax

'Declaration
Public Shared Function ParseChangesetNumber ( _
    changeset As String _
) As Integer
public static int ParseChangesetNumber(
    string changeset
)
public:
static int ParseChangesetNumber(
    String^ changeset
)
static member ParseChangesetNumber : 
        changeset:string -> int
public static function ParseChangesetNumber(
    changeset : String
) : int

Parameters

Return Value

Type: System.Int32
The changeset number.

Exceptions

Exception Condition
InvalidVersionSpecException

.NET Framework Security

See Also

Reference

ChangesetVersionSpec Class

Microsoft.TeamFoundation.VersionControl.Client Namespace