Delen via


WorkspaceSpec.Parse Method (String, String, String%, String%)

Parses a workspace spec of the form Workspace user and returns the two parts. If the user name is not specified (or fully qualified) in the workspace specification, uses information from the defaultUser argument.

NOTE: This method may qualified username (e.g. it lacked the domain\ prefix), this routine does not attempt to provide the missing pieces. The caller is responsible for doing this.

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

Syntax

'Declaration
Public Shared Sub Parse ( _
    spec As String, _
    defaultUser As String, _
    <OutAttribute> ByRef workspaceName As String, _
    <OutAttribute> ByRef workspaceOwner As String _
)
public static void Parse(
    string spec,
    string defaultUser,
    out string workspaceName,
    out string workspaceOwner
)
public:
static void Parse(
    String^ spec, 
    String^ defaultUser, 
    [OutAttribute] String^% workspaceName, 
    [OutAttribute] String^% workspaceOwner
)
static member Parse : 
        spec:string * 
        defaultUser:string * 
        workspaceName:string byref * 
        workspaceOwner:string byref -> unit
public static function Parse(
    spec : String, 
    defaultUser : String, 
    workspaceName : String, 
    workspaceOwner : String
)

Parameters

  • defaultUser
    Type: System.String

    The fully qualified default user.

  • workspaceName
    Type: System.String%

    The returned workspace name.

  • workspaceOwner
    Type: System.String%

    The returned workspace owner.

.NET Framework Security

See Also

Reference

WorkspaceSpec Class

Parse Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace