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 IDisposable, IList(Of T), ICollection(Of T),  _
    IEnumerable(Of T), IEnumerable
public class DisposableCollection<T> : IDisposable, 
    IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
generic<typename T>
public ref class DisposableCollection : IDisposable, 
    IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
type DisposableCollection<'T> =  
    class 
        interface IDisposable 
        interface IList<'T>
        interface ICollection<'T>
        interface IEnumerable<'T>
        interface IEnumerable 
    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
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 a hash function for a particular type. (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