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 수 있습니다.

적용 대상