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
- 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.