Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub New ( _
    elements As List(Of T), _
    ParamArray disposableObjects As IDisposable() _
)
public DisposableCollection(
    List<T> elements,
    params IDisposable[] disposableObjects
)
public:
DisposableCollection(
    List<T>^ elements, 
    ... array<IDisposable^>^ disposableObjects
)
new : 
        elements:List<'T> * 
        disposableObjects:IDisposable[] -> DisposableCollection
public function DisposableCollection(
    elements : List<T>, 
    ... disposableObjects : IDisposable[]
)
Parameters
- elements
 Type: System.Collections.Generic.List<T>
- disposableObjects
 Type: array<System.IDisposable[]
.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.