Export (0) Print
Expand All

VersionControlServer.CreateWorkspace Method (String, String, String)

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



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


The owner of this workspace.


A descriptive comment 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. The workspace will have no working folders and the computer attribute will use the current computer. An exception will be thrown if the workspace cannot be created.

Community Additions

© 2014 Microsoft