Udostępnij za pośrednictwem


Metoda VersionControlServer.CreateWorkspace — (String, String, String, array<WorkingFolder , String, Boolean)

Tworzy nową Workspace.

Przestrzeń nazw:  Microsoft.TeamFoundation.VersionControl.Client
Zestaw:  Microsoft.TeamFoundation.VersionControl.Client (w Microsoft.TeamFoundation.VersionControl.Client.dll)

Składnia

'Deklaracja
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
)

Parametry

  • removeUnparentedCloaks
    Typ: System.Boolean
    W przypadku wartości true spowoduje usunięcie mapowania błędów, które może być bezpiecznie zignorowana.

Wartość zwracana

Typ: Microsoft.TeamFoundation.VersionControl.Client.Workspace
Nowo utworzony Workspace obiektu.

Uwagi

Tożsamość wywołujący musi mieć uprawnienie globalne CreateWorkspace.Wyjątek jest generowany, jeśli nie można utworzyć obszaru roboczego.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VersionControlServer Klasa

Przeciążenie CreateWorkspace

Przestrzeń nazw Microsoft.TeamFoundation.VersionControl.Client