VersionControlServer.CreateWorkspace Method (String, String, String, array<WorkingFolder )
Creates a new Workspace.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaração
Public Function CreateWorkspace ( _
name As String, _
owner As String, _
comment As String, _
mappings As WorkingFolder() _
) As Workspace
public Workspace CreateWorkspace(
string name,
string owner,
string comment,
WorkingFolder[] mappings
)
public:
Workspace^ CreateWorkspace(
String^ name,
String^ owner,
String^ comment,
array<WorkingFolder^>^ mappings
)
member CreateWorkspace :
name:string *
owner:string *
comment:string *
mappings:WorkingFolder[] -> Workspace
public function CreateWorkspace(
name : String,
owner : String,
comment : String,
mappings : WorkingFolder[]
) : Workspace
Parameters
- name
Type: System.String
The name of the Workspace to create. Must be unique for this owner.
- owner
Type: System.String
The owner of the Workspace to create.
- comment
Type: System.String
A descriptive comment for the Workspace.
- mappings
Type: array<Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]
An array of working folders to establish for the Workspace.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
The newly created Workspace object.
Remarks
The calling identity must have the CreateWorkspace global permission. This method returns a reference to a Workspace object. The computer attribute is defaulted to the current machine. 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.