Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies the selected lock level to the specified paths.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function SetLock ( _
paths As String(), _
lockLevel As LockLevel, _
recursion As RecursionType, _
silent As Boolean _
) As Integer
public int SetLock(
string[] paths,
LockLevel lockLevel,
RecursionType recursion,
bool silent
)
public:
int SetLock(
array<String^>^ paths,
LockLevel lockLevel,
RecursionType recursion,
bool silent
)
member SetLock :
paths:string[] *
lockLevel:LockLevel *
recursion:RecursionType *
silent:bool -> int
public function SetLock(
paths : String[],
lockLevel : LockLevel,
recursion : RecursionType,
silent : boolean
) : int
Parameters
paths
Type: array<System.String[]The array of paths on which to set the lock.
lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevelThe lock level to apply.
recursion
Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionTypeA flag that specifies the type of recursion.
silent
Type: System.BooleanSpecifies whether the server should return Get operations.
Return Value
Type: System.Int32
The number of locks that are set.
.NET Framework Security
- 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.