Workspace.SetLock Method (String, LockLevel, RecursionType)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Applies the selected lock level to the specified paths.
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public int SetLock( string paths, LockLevel lockLevel, RecursionType recursion )
- Type: System.String
The array of paths on which to set the lock.
- Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel
The lock level to apply.
- Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionType
A flag that specifies the type of recursion.
Return ValueType: System.Int32
The number of locks that are set.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.