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 컬렉션입니다.

예외

eventsnull입니다.

예제

다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 있습니다.


// 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 사용하여 초기화할 수 있습니다.

적용 대상

추가 정보