WebBaseErrorEvent 생성자

정의

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

오버로드

Name Description
WebBaseErrorEvent(String, Object, Int32, Exception)

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

WebBaseErrorEvent(String, Object, Int32, Int32, Exception)

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

WebBaseErrorEvent(String, Object, Int32, Exception)

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

protected public:
 WebBaseErrorEvent(System::String ^ message, System::Object ^ eventSource, int eventCode, Exception ^ e);
protected internal WebBaseErrorEvent(string message, object eventSource, int eventCode, Exception e);
new System.Web.Management.WebBaseErrorEvent : string * obj * int * Exception -> System.Web.Management.WebBaseErrorEvent
Protected Friend Sub New (message As String, eventSource As Object, eventCode As Integer, e As Exception)

매개 변수

message
String

이벤트 설명입니다.

eventSource
Object

이벤트의 소스인 개체입니다.

eventCode
Int32

이벤트와 연결된 코드입니다. 사용자 지정 이벤트를 구현할 때 이벤트 코드는 1보다 WebExtendedBase커야 합니다.

e
Exception

Exception 오류와 관련된 것입니다.

예제

다음 코드 예제에서는 클래스에서 파생 되는 클래스에 대 한 SampleWebBaseErrorEvent 생성자에서 WebBaseErrorEvent 이 생성자를 호출 하는 방법을 보여 집니다.

// Invoked in case of events identified only by their event code.
public SampleWebBaseErrorEvent(string msg, 
    object eventSource, int eventCode, Exception e):
  base(msg, eventSource, eventCode, e)
{
    // Perform custom initialization.
    customCreatedMsg =
      string.Format("Event created at: {0}", 
      DateTime.Now.TimeOfDay.ToString());
}
' Invoked in case of events identified only by their event code.
Public Sub New(ByVal msg As String, ByVal eventSource As Object, _
ByVal eventCode As Integer, ByVal e As Exception)
    MyBase.New(msg, eventSource, eventCode, e)
    ' Perform custom initialization.
    customCreatedMsg = String.Format("Event created at: {0}", _
    DateTime.Now.TimeOfDay.ToString())

End Sub

설명

이 생성자는 ASP.NET 상태 모니터링 시스템에서 내부적으로 사용됩니다. 이 클래스에서 상속하는 고유한 이벤트 형식을 구현할 때 이 생성자를 호출할 수 있습니다.

추가 정보

적용 대상

WebBaseErrorEvent(String, Object, Int32, Int32, Exception)

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

protected public:
 WebBaseErrorEvent(System::String ^ message, System::Object ^ eventSource, int eventCode, int eventDetailCode, Exception ^ e);
protected internal WebBaseErrorEvent(string message, object eventSource, int eventCode, int eventDetailCode, Exception e);
new System.Web.Management.WebBaseErrorEvent : string * obj * int * int * Exception -> System.Web.Management.WebBaseErrorEvent
Protected Friend Sub New (message As String, eventSource As Object, eventCode As Integer, eventDetailCode As Integer, e As Exception)

매개 변수

message
String

이벤트 설명입니다.

eventSource
Object

이벤트의 소스인 개체입니다.

eventCode
Int32

이벤트와 연결된 코드입니다. 사용자 지정 이벤트를 구현할 때 이벤트 코드는 1보다 WebExtendedBase커야 합니다.

eventDetailCode
Int32

이벤트에 대한 자세한 식별자입니다.

e
Exception

Exception 오류와 관련된 것입니다.

예제

다음 코드 예제에서는 클래스에서 파생 되는 클래스에 대 한 SampleWebBaseErrorEvent 생성자에서 WebBaseErrorEvent 이 생성자를 호출 하는 방법을 보여 집니다.

// Invoked in case of events identified by their event code and 
// related event detailed code.
public SampleWebBaseErrorEvent(string msg, object eventSource, 
    int eventCode, int detailedCode, Exception e):
  base(msg, eventSource, eventCode, detailedCode, e)
{
    // Perform custom initialization.
    customCreatedMsg =
      string.Format("Event created at: {0}", 
      DateTime.Now.TimeOfDay.ToString());
}
' Invoked in case of events identified by their event code and 
' related event detailed code.
Public Sub New(ByVal msg As String, ByVal eventSource As Object, _
ByVal eventCode As Integer, ByVal detailedCode As Integer, _
ByVal e As Exception)
    MyBase.New(msg, eventSource, eventCode, detailedCode, e)
    ' Perform custom initialization.
    customCreatedMsg = String.Format("Event created at: {0}", _
    DateTime.Now.TimeOfDay.ToString())

End Sub

설명

이 생성자는 ASP.NET 상태 모니터링 시스템에서 내부적으로 사용됩니다. 이 클래스에서 상속하는 고유한 이벤트 형식을 구현할 때 이 생성자를 호출할 수 있습니다.

추가 정보

적용 대상