Share via


Workspace.SetLock-Methode (String, LockLevel)

Wendet die ausgewählte Sperre, die dem angegebenen Pfad auf Assemblyebene.

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

Syntax

'Declaration
Public Function SetLock ( _
    path As String, _
    lockLevel As LockLevel _
) As Integer
public int SetLock(
    string path,
    LockLevel lockLevel
)

Parameter

  • path
    Typ: System.String
    Auf dem der Pfad, um die Sperre festzulegen.

Rückgabewert

Typ: System.Int32
Die Anzahl von Sperren, die festgelegt werden.

.NET Framework-Sicherheit

Siehe auch

Referenz

Workspace Klasse

SetLock-Überladung

Microsoft.TeamFoundation.VersionControl.Client-Namespace