Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Parses a workspace specification 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 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
- spec 
 Type: System.String- The workspace specification to parse. 
- defaultUser 
 Type: System.String- The fully qualified default user. 
- defaultUserDisplay
 Type: System.String
- workspaceName 
 Type: System.String%- The returned workspace name. 
- workspaceOwner 
 Type: System.String%- The returned workspace owner. 
- workspaceOwnerDisplay
 Type: System.String%
.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.