CreateWorkspace Method (String)
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. ArchiveDisclaimer

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



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

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.

© 2016 Microsoft