WorkspaceSpec.Parse Method (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 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
spec
Type: System.Stringthe workspace spec to parse
defaultUser
Type: System.Stringthe fully qualified default user
workspaceName
Type: System.String%returned workspace name
workspaceOwner
Type: System.String%returned workspace owner
.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.