Lock name with two values of given types.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.Framework.Server.LockName<T1, T2>
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Class LockName(Of T1 As {Object, IComparable(Of T1), IEquatable(Of T1)}, T2 As {Object, IComparable(Of T2), IEquatable(Of T2)}) _
    Implements ILockName, IEquatable(Of ILockName),  _
    IComparable(Of ILockName)
public class LockName<T1, T2> : ILockName, 
    IEquatable<ILockName>, IComparable<ILockName>
where T1 : Object, IComparable<T1>, IEquatable<T1>
where T2 : Object, IComparable<T2>, IEquatable<T2>
generic<typename T1, typename T2>
where T1 : Object, IComparable<T1>, IEquatable<T1>
where T2 : Object, IComparable<T2>, IEquatable<T2>
public ref class LockName : ILockName, 
    IEquatable<ILockName^>, IComparable<ILockName^>
type LockName<'T1, 'T2 when 'T1 : Object and IComparable<'T1> and IEquatable<'T1> when 'T2 : Object and IComparable<'T2> and IEquatable<'T2>> =  
    class 
        interface ILockName 
        interface IEquatable<ILockName>
        interface IComparable<ILockName>
    end
JScript does not support generic types or methods.
Type Parameters
- T1
 The type of the first name value (major part).
- T2
 The type of the second name value (minor part).
The LockName<T1, T2> type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | LockName<T1, T2> | Constructor | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | CachedLockObject | Get or set a cached lock object for this name. | 
| .gif) | LockLevel | Returns the lock level for this name. | 
| .gif) | NameValue1 | Returns the first name value. | 
| .gif) | NameValue2 | Returns the second name value. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | CompareTo | IComparable<ILockName>.CompareTo implementation | 
| .gif) | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Equals(ILockName) | IEquatable<ILockName>.Equals implementation | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Returns the object hash code. (Overrides Object.GetHashCode().) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns the object string representation. (Overrides Object.ToString().) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.