Share via


LockManager.TestLock, méthode (String, LockManager.LockType, Int64)

Teste si ce thread détient déjà un verrou.

Espace de noms :  Microsoft.TeamFoundation.Framework.Server
Assembly :  Microsoft.TeamFoundation.Framework.Server (dans Microsoft.TeamFoundation.Framework.Server.dll)

Syntaxe

'Déclaration
Public Function TestLock ( _
    lockName As String, _
    lockType As LockManager.LockType, _
    requestId As Long _
) As Boolean
public bool TestLock(
    string lockName,
    LockManager.LockType lockType,
    long requestId
)

Paramètres

Valeur de retour

Type : System.Boolean
True si du thread actuel les détient déjà qui se verrouillent, sinon false.

Sécurité .NET Framework

Voir aussi

Référence

LockManager Classe

TestLock, surcharge

Microsoft.TeamFoundation.Framework.Server, espace de noms