VersionControlServer.CreateWorkspace Method (String)
Creates a new Workspace.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Декларация
Public Function CreateWorkspace ( _
name As String _
) As Workspace
public Workspace CreateWorkspace(
string name
)
public:
Workspace^ CreateWorkspace(
String^ name
)
member CreateWorkspace :
name:string -> Workspace
public function CreateWorkspace(
name : String
) : Workspace
Parameters
- name
Type: System.String
The name of the Workspace to create. Must be unique for this owner.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
The newly created Workspace object.
Remarks
The calling identity must have the CreateWorkspace global permission. The comment is empty, the computer attribute is defaulted to the current machine, and the workspace has no working folder mappings. An exception is thrown if the workspace cannot be created.
.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.