Sdílet prostřednictvím


WebBaseEventCollection(ICollection) Konstruktor

Definice

Inicializuje novou instanci WebBaseEventCollection třídy.

public:
 WebBaseEventCollection(System::Collections::ICollection ^ events);
public WebBaseEventCollection (System.Collections.ICollection events);
new System.Web.Management.WebBaseEventCollection : System.Collections.ICollection -> System.Web.Management.WebBaseEventCollection
Public Sub New (events As ICollection)

Parametry

events
ICollection

Kolekce WebBaseEvent objektů.

Výjimky

events je null.

Příklady

Následující příklad kódu ukazuje, jak použít tento konstruktor.


// Create an event collection.
// Add to it the created simulatedEvents.
public static void AddEvents()
{
    events = 
    new System.Web.Management.WebBaseEventCollection(
    simulatedEvents);
}
' Create an event collection.
' Add to it the created simulatedEvents.
Public Shared Sub AddEvents() 
    events = _
    New System.Web.Management.WebBaseEventCollection(simulatedEvents)

End Sub

Poznámky

Konstruktor WebBaseEventCollection(ICollection) umožňuje vytvořit instanci WebBaseEventCollection třídy a inicializovat ji WebBaseEvent kolekcí objektů.

Platí pro

Viz také