WebBaseEventCollection Constructor (ICollection)

 

Initializes a new instance of the WebBaseEventCollection class.

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

Public Sub New (
	events As ICollection
)

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 Shared Sub AddEvents() 
    events = _
    New System.Web.Management.WebBaseEventCollection(simulatedEvents)

End Sub 'AddEvents


.NET Framework
Available since 2.0
Return to top
Show: