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