Workspace.SetLock Method (array<String , LockLevel)
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
'Declaração
Public Function SetLock ( _
paths As String(), _
lockLevel As LockLevel _
) As Integer
public int SetLock(
string[] paths,
LockLevel lockLevel
)
public:
int SetLock(
array<String^>^ paths,
LockLevel lockLevel
)
member SetLock :
paths:string[] *
lockLevel:LockLevel -> int
public function SetLock(
paths : String[],
lockLevel : LockLevel
) : int
Parameters
- paths
Type: array<System.String[]
The array of paths on which to set the lock.
- lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel
The lock level to apply.
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.