Freigeben über


DisposableCollection<T> Class

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class DisposableCollection(Of T) _
    Implements IEnumerable(Of T), IEnumerable, IDisposable,  _
    IList(Of T), ICollection(Of T)
public class DisposableCollection<T> : IEnumerable<T>, 
    IEnumerable, IDisposable, IList<T>, ICollection<T>
generic<typename T>
public ref class DisposableCollection : IEnumerable<T>, 
    IEnumerable, IDisposable, IList<T>, ICollection<T>
type DisposableCollection<'T> =  
    class 
        interface IEnumerable<'T>
        interface IEnumerable 
        interface IDisposable 
        interface IList<'T>
        interface ICollection<'T>
    end
JScript does not support generic types or methods.

Type Parameters

  • T

The DisposableCollection<T> type exposes the following members.

Constructors

  Name Description
Public method DisposableCollection<T>

Top

Properties

  Name Description
Public property Count
Public property IsReadOnly
Public property Item

Top

Methods

  Name Description
Public method Add
Public method Clear
Public method Contains
Public method CopyTo
Public method Dispose
Protected method DoDispose
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize (Overrides Object.Finalize().)
Public method GetEnumerator
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf
Public method Insert
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove
Public method RemoveAt
Public method Sort(IComparer<T>)
Public method Sort(Comparison<T>)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator

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