WebBaseEventCollection Constructor (ICollection)

 

Initializes a new instance of the WebBaseEventCollection class.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public WebBaseEventCollection(
	ICollection events
)

Parameters

events
Type: System.Collections.ICollection

The collection of WebBaseEvent objects.

Exception Condition
ArgumentNullException

events is null.

The WebBaseEventCollection(ICollection) constructor allows you to create an instance of the WebBaseEventCollection class and initialize it with a collection of WebBaseEvent objects.

The following code example shows how to use this constructor.


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

.NET Framework
Available since 2.0
Return to top
Show: