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
- workspace
Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace
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.