Share via


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

Parse a workspace spec of the form Workspace;user and return the two parts. If the user name is not specified (or fully qualified) in the workspace specification, use information from the defaultUser arguments.

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, _
    defaultUserDisplay As String, _
    <OutAttribute> ByRef workspaceName As String, _
    <OutAttribute> ByRef workspaceOwner As String, _
    <OutAttribute> ByRef workspaceOwnerDisplay As String _
)
public static void Parse(
    string spec,
    string defaultUser,
    string defaultUserDisplay,
    out string workspaceName,
    out string workspaceOwner,
    out string workspaceOwnerDisplay
)
public:
static void Parse(
    String^ spec, 
    String^ defaultUser, 
    String^ defaultUserDisplay, 
    [OutAttribute] String^% workspaceName, 
    [OutAttribute] String^% workspaceOwner, 
    [OutAttribute] String^% workspaceOwnerDisplay
)
static member Parse : 
        spec:string * 
        defaultUser:string * 
        defaultUserDisplay:string * 
        workspaceName:string byref * 
        workspaceOwner:string byref * 
        workspaceOwnerDisplay:string byref -> unit
public static function Parse(
    spec : String, 
    defaultUser : String, 
    defaultUserDisplay : String, 
    workspaceName : String, 
    workspaceOwner : String, 
    workspaceOwnerDisplay : String
)

Parameters

  • defaultUser
    Type: System.String

    the fully qualified default user

.NET Framework Security

See Also

Reference

WorkspaceSpec Class

Parse Overload

Microsoft.TeamFoundation.VersionControl.Common Namespace