VersionControlServer.CreateWorkspace Method (String, String, String, WorkingFolder[], String, WorkspacePermissionProfile, Boolean)
Visual Studio 2012
Creates a new Workspace.
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public Workspace CreateWorkspace( string name, string owner, string comment, WorkingFolder[] mappings, string computer, WorkspacePermissionProfile permissionProfile, bool removeUnparentedCloaks )
Parameters
- name
- Type: String
The name of the Workspace to create. Must be unique for this owner.
- owner
- Type: String
The owner of the Workspace to create.
- comment
- Type: String
A descriptive comment for the Workspace.
- mappings
- Type: Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]
An array of working folders to establish for the Workspace.
- computer
- Type: String
The computer where the Workspace will exist.
- permissionProfile
- Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissionProfile
The permission profile for this Workspace.
- removeUnparentedCloaks
- Type: Boolean
When true, will remove mapping errors that can be safely ignored.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceA reference to a workspace object that represents the new Workspace.
- 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.