Share via


VersionControlServer.CreateWorkspace-Methode (String, String, String, array<WorkingFolder[], String, WorkspacePermissionProfile, Boolean)

Erstellt einen neuen 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, _
    permissionProfile As WorkspacePermissionProfile, _
    removeUnparentedCloaks As Boolean _
) As Workspace
public Workspace CreateWorkspace(
    string name,
    string owner,
    string comment,
    WorkingFolder[] mappings,
    string computer,
    WorkspacePermissionProfile permissionProfile,
    bool removeUnparentedCloaks
)

Parameter

  • removeUnparentedCloaks
    Typ: System.Boolean
    Wenn true, Zuordnungsfehler entfernt, die sicher ignoriert werden können.

Rückgabewert

Typ: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Ein Verweis auf einen Arbeitsbereichsobjekt, das neue Workspace darstellt.

Hinweise

Die aufrufende Identität muss die globale Berechtigung CreateWorkspace haben. Eine Ausnahme wird ausgelöst, wenn der Arbeitsbereich nicht erstellt werden kann.

.NET Framework-Sicherheit

Siehe auch

Referenz

VersionControlServer Klasse

CreateWorkspace-Überladung

Microsoft.TeamFoundation.VersionControl.Client-Namespace