Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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

© 2015 Microsoft