TeamFoundationVersionControlService.CreateWorkspace Method
This function creates a new workspace for a given user.
The workspace must not already exist.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Function CreateWorkspace ( _
requestContext As TeamFoundationRequestContext, _
workspace As Workspace _
) As Workspace
public Workspace CreateWorkspace(
TeamFoundationRequestContext requestContext,
Workspace workspace
)
public:
Workspace^ CreateWorkspace(
TeamFoundationRequestContext^ requestContext,
Workspace^ workspace
)
member CreateWorkspace :
requestContext:TeamFoundationRequestContext *
workspace:Workspace -> Workspace
public function CreateWorkspace(
requestContext : TeamFoundationRequestContext,
workspace : Workspace
) : Workspace
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
workspace
Type: Microsoft.TeamFoundation.VersionControl.Server.WorkspaceThe workspace to create.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace
New workspace information. May contain "cleanups" performed by the server.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.