Export (0) Print
Expand All

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

Parameters

name

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

owner

The owner of this 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 comment for the workspace will be empty, the computer attribute will use the current computer, and the workspace will have no working folder mappings. An exception will be thrown if the workspace cannot be created.

Community Additions

ADD
Show:
© 2014 Microsoft