다음을 통해 공유


VersionControlServer.CreateWorkspace Method (String, String)

Creates a new Workspace.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

‘선언
Public Function CreateWorkspace ( _
    name As String, _
    owner As String _
) As Workspace
public Workspace CreateWorkspace(
    string name,
    string owner
)
public:
Workspace^ CreateWorkspace(
    String^ name, 
    String^ owner
)
member CreateWorkspace : 
        name:string * 
        owner:string -> Workspace 
public function CreateWorkspace(
    name : String, 
    owner : String
) : Workspace

Parameters

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.Workspace
The newly created Workspaceobject.

Remarks

The calling identity must have the CreateWorkspace global permission. The comment is empty, the computer attribute is defaulted to the current machine, and the workspace has no working folder mappings. An exception is thrown if the workspace cannot be created.

.NET Framework Security

See Also

Reference

VersionControlServer Class

CreateWorkspace Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace