Delen via


VersionControlServer.CreateWorkspace Method (String, String, String, array<WorkingFolder , String, Boolean)

Creates a new Workspace.

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

Syntax

'Declaration
Public Function CreateWorkspace ( _
    name As String, _
    owner As String, _
    comment As String, _
    mappings As WorkingFolder(), _
    computer As String, _
    removeUnparentedCloaks As Boolean _
) As Workspace
public Workspace CreateWorkspace(
    string name,
    string owner,
    string comment,
    WorkingFolder[] mappings,
    string computer,
    bool removeUnparentedCloaks
)
public:
Workspace^ CreateWorkspace(
    String^ name, 
    String^ owner, 
    String^ comment, 
    array<WorkingFolder^>^ mappings, 
    String^ computer, 
    bool removeUnparentedCloaks
)
member CreateWorkspace : 
        name:string * 
        owner:string * 
        comment:string * 
        mappings:WorkingFolder[] * 
        computer:string * 
        removeUnparentedCloaks:bool -> Workspace
public function CreateWorkspace(
    name : String, 
    owner : String, 
    comment : String, 
    mappings : WorkingFolder[], 
    computer : String, 
    removeUnparentedCloaks : boolean
) : Workspace

Parameters

  • removeUnparentedCloaks
    Type: System.Boolean

    When true, will remove mapping errors that can be safely ignored.

Return Value

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

Remarks

The calling identity must have the CreateWorkspace global permission. 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