語言

WebBaseEventCollection(ICollection) 建構函式

定義

初始化 WebBaseEventCollection 類別的新執行個體。

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)

參數

events
ICollection

這些物品的集合 WebBaseEvent 。

例外狀況

events 是 null。

範例

以下程式碼範例說明如何使用此建構子。


// 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

備註

WebBaseEventCollection(ICollection)建構子允許你建立該類別的實例WebBaseEventCollection,並用一組WebBaseEvent物件初始化它。

適用於

另請參閱