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

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace
New workspace information. May contain "cleanups" performed by the server.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace