VersionControlServer.CreateWorkspace Method (String, String, String, array<WorkingFolder , String, WorkspacePermissionProfile, Boolean)
Creates a new Workspace.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function CreateWorkspace ( _
name As String, _
owner As String, _
comment As String, _
mappings As WorkingFolder(), _
computer As String, _
permissionProfile As WorkspacePermissionProfile, _
removeUnparentedCloaks As Boolean _
) As Workspace
public Workspace CreateWorkspace(
string name,
string owner,
string comment,
WorkingFolder[] mappings,
string computer,
WorkspacePermissionProfile permissionProfile,
bool removeUnparentedCloaks
)
public:
Workspace^ CreateWorkspace(
String^ name,
String^ owner,
String^ comment,
array<WorkingFolder^>^ mappings,
String^ computer,
WorkspacePermissionProfile^ permissionProfile,
bool removeUnparentedCloaks
)
member CreateWorkspace :
name:string *
owner:string *
comment:string *
mappings:WorkingFolder[] *
computer:string *
permissionProfile:WorkspacePermissionProfile *
removeUnparentedCloaks:bool -> Workspace
public function CreateWorkspace(
name : String,
owner : String,
comment : String,
mappings : WorkingFolder[],
computer : String,
permissionProfile : WorkspacePermissionProfile,
removeUnparentedCloaks : boolean
) : Workspace
Parameters
name
Type: System.StringThe name of the Workspace to create. Must be unique for this owner.
owner
Type: System.StringThe owner of the Workspace to create.
comment
Type: System.StringA descriptive comment for the Workspace.
mappings
Type: array<Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]An array of working folders to establish for the Workspace.
computer
Type: System.StringThe computer where the Workspace will exist.
permissionProfile
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissionProfileThe permission profile for this Workspace.
removeUnparentedCloaks
Type: System.BooleanWhen true, will remove mapping errors that can be safely ignored.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
A reference to a workspace object that represents the new Workspace.
Remarks
The calling identity must have the CreateWorkspace global permission. 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.