Freigeben über


Workspace.SetLock Method (String, LockLevel)

Applies the selected lock level to the specified path.

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
)
public:
int SetLock(
    String^ path, 
    LockLevel lockLevel
)
member SetLock : 
        path:string * 
        lockLevel:LockLevel -> int 
public function SetLock(
    path : String, 
    lockLevel : LockLevel
) : int

Parameters

Return Value

Type: System.Int32
The number of locks that are set.

.NET Framework Security

See Also

Reference

Workspace Class

SetLock Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace