LockName<T> Class

Lock name with a value of a given type.

Inheritance Hierarchy

System.Object
Microsoft.TeamFoundation.Framework.Server.LockName<T>

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

Syntax

'Declaration
Public Class LockName(Of T As {Object, IComparable(Of T), IEquatable(Of T)}) _
    Implements ILockName, IEquatable(Of ILockName),  _
    IComparable(Of ILockName)
public class LockName<T> : ILockName, IEquatable<ILockName>, 
    IComparable<ILockName>
where T : Object, IComparable<T>, IEquatable<T>
generic<typename T>
where T : Object, IComparable<T>, IEquatable<T>
public ref class LockName : ILockName, 
    IEquatable<ILockName^>, IComparable<ILockName^>
type LockName<'T when 'T : Object and IComparable<'T> and IEquatable<'T>> =  
    class 
        interface ILockName 
        interface IEquatable<ILockName>
        interface IComparable<ILockName>
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the name value.

The LockName<T> type exposes the following members.

Constructors

Name Description
Public method LockName<T> Constructor

Top

Properties

Name Description
Public property CachedLockObject Get or set a cached lock object for this name.
Public property LockLevel Returns the lock level for this name.
Public property NameValue Returns the name value.

Top

Methods

Name Description
Public method CompareTo IComparable<ILockName>.CompareTo implementation
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Equals(ILockName) IEquatable<ILockName>.Equals implementation
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the object hash code. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace