WebBaseEventCollection(ICollection) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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物件初始化它。