Export (0) Print
Expand All

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

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
public Workspace CreateWorkspace (
	String name, 
	String owner, 
	String comment, 
	WorkingFolder[] mappings
public function CreateWorkspace (
	name : String, 
	owner : String, 
	comment : String, 
	mappings : WorkingFolder[]
) : Workspace



The name of this workspace. Must be unique for this owner.


The owner of this workspace.


A descriptive comment for the workspace.


An array of working folders to be established for the workspace.

Return Value

Returns a reference to a workspace object which represents the new workspace.

The calling identity must have the GlobalPermissionCreateWorkspace global permission. This method will return a reference to a Workspace object. The computer attribute will use the current computer. An exception will be thrown if the workspace cannot be created.

Community Additions

© 2014 Microsoft