Share via


LockManager.CompareLockTypes Method

Compares two lock types (throws if lock types are not comparable).

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Shared Function CompareLockTypes ( _
    type1 As LockManager.LockType, _
    type2 As LockManager.LockType _
) As Integer
public static int CompareLockTypes(
    LockManager.LockType type1,
    LockManager.LockType type2
)
public:
static int CompareLockTypes(
    LockManager::LockType type1, 
    LockManager::LockType type2
)
static member CompareLockTypes : 
        type1:LockManager.LockType * 
        type2:LockManager.LockType -> int
public static function CompareLockTypes(
    type1 : LockManager.LockType, 
    type2 : LockManager.LockType
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

LockManager Class

Microsoft.TeamFoundation.Framework.Server Namespace