Delen via


Repository.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
<WebMethodAttribute> _
Public Function CreateWorkspace ( _
    workspace As Workspace _
) As Workspace
[WebMethodAttribute]
public Workspace CreateWorkspace(
    Workspace workspace
)
[WebMethodAttribute]
public:
Workspace^ CreateWorkspace(
    Workspace^ workspace
)
[<WebMethodAttribute>]
member CreateWorkspace : 
        workspace:Workspace -> Workspace
public function CreateWorkspace(
    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

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace