CreateWorkspace Method (String, String, String, WorkingFolder[], String, WorkspacePermissionProfile, Boolean)

VersionControlServer.CreateWorkspace Method (String, String, String, WorkingFolder[], String, WorkspacePermissionProfile, Boolean)

Creates a new Workspace.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
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 permissionsProfile,
	bool fixMappingErrors
)

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: Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]
An array of working folders to establish for the Workspace.
computer
Type: System.String
The computer where the Workspace will exist.
permissionsProfile
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissionProfile
The permission profile for this Workspace.
fixMappingErrors
Type: System.Boolean
When 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.

The calling identity must have the CreateWorkspace global permission. An exception is thrown if the workspace cannot be created.

Community Additions

ADD
Show:
© 2016 Microsoft