CreateWorkspace Method (String, String, String, WorkingFolder[], String)
This documentation is archived and is not being maintained.

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

Parameters

name

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

owner

The owner of this workspace.

comment

A descriptive comment for the workspace.

mappings

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

computer

The computer on which the workspace will exist.

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 An exception will be thrown if the workspace cannot be created.

Show:
© 2016 Microsoft