WebEventProvider 생성자

정의

WebEventProvider 클래스의 새 인스턴스를 초기화합니다.

protected:
 WebEventProvider();
protected WebEventProvider ();
Protected Sub New ()

예제

다음 코드 예제에서는 사용자 지정 이벤트 공급자에서이 생성자를 사용 하는 방법을 보여 줍니다.

// Initializes the provider.
public SampleEventProvider(): base()
{

    // Initialize the local path of the file 
    // that holds event information.
    logFilePath = "C:/test/log.doc";

    // Clear the message buffer.
    msgBuffer.Clear();

    // Initialize the max number of messages
    // to buffer.
    maxMsgNumber = 10;

    // More custom initialization goes here.
}
' Initializes the provider.
Public Sub New() 
    
    ' Initialize the local path of the file 
    ' that holds event information.
    logFilePath = "C:/test/log.doc"
    
    ' Clear the message buffer.
    msgBuffer.Clear()
    
    ' Initialize the max number of messages
    ' to buffer.
    maxMsgNumber = 10

End Sub
 
' More custom initialization goes here.

설명

WebEventProvider 생성자는 코드에서 직접 사용할 수 없습니다. ASP.NET에서 호출 됩니다. 호출할 수 있습니다 합니다 WebEventProvider 에서 파생 하는 경우 생성자는 WebEventProvider 클래스입니다.

적용 대상