WebBaseErrorEvent コンストラクタ (String, Object, Int32, Int32, Exception)
アセンブリ: System.Web (system.web.dll 内)
構文
Protected Friend Sub New ( _ message As String, _ eventSource As Object, _ eventCode As Integer, _ eventDetailCode As Integer, _ e As Exception _ )
Dim message As String Dim eventSource As Object Dim eventCode As Integer Dim eventDetailCode As Integer Dim e As Exception Dim instance As New WebBaseErrorEvent(message, eventSource, eventCode, eventDetailCode, e)
protected internal WebBaseErrorEvent ( string message, Object eventSource, int eventCode, int eventDetailCode, Exception e )
protected public: WebBaseErrorEvent ( String^ message, Object^ eventSource, int eventCode, int eventDetailCode, Exception^ e )
protected WebBaseErrorEvent ( String message, Object eventSource, int eventCode, int eventDetailCode, Exception e )
protected internal function WebBaseErrorEvent ( message : String, eventSource : Object, eventCode : int, eventDetailCode : int, e : Exception )
このコンストラクタは、ASP.NET Health Monitoring system によって内部的に使用されます。このコンストラクタは、このクラスを継承する独自のイベント型を実装する場合に呼び出すことができます。
このコンストラクタを、WebBaseErrorEvent クラスの派生である SampleWebBaseErrorEvent クラスのコンストラクタから呼び出す方法を、次のコード例に示します。
' 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 'New
// 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()); }
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
WebBaseErrorEvent コンストラクタ
オーバーロードの一覧
名前 | 説明 |
---|---|
WebBaseErrorEvent (String, Object, Int32, Exception) | WebBaseErrorEvent クラスの新しいインスタンスを初期化します。 |
WebBaseErrorEvent (String, Object, Int32, Int32, Exception) | WebBaseErrorEvent クラスの新しいインスタンスを初期化します。 |
WebBaseErrorEvent コンストラクタ (String, Object, Int32, Exception)
アセンブリ: System.Web (system.web.dll 内)
構文
Protected Friend Sub New ( _ message As String, _ eventSource As Object, _ eventCode As Integer, _ e As Exception _ )
Dim message As String Dim eventSource As Object Dim eventCode As Integer Dim e As Exception Dim instance As New WebBaseErrorEvent(message, eventSource, eventCode, e)
protected internal WebBaseErrorEvent ( string message, Object eventSource, int eventCode, Exception e )
protected public: WebBaseErrorEvent ( String^ message, Object^ eventSource, int eventCode, Exception^ e )
protected internal function WebBaseErrorEvent ( message : String, eventSource : Object, eventCode : int, e : Exception )
このコンストラクタは、ASP.NET Health Monitoring system によって内部的に使用されます。このコンストラクタは、このクラスを継承する独自のイベント型を実装する場合に呼び出すことができます。
このコンストラクタを、WebBaseErrorEvent クラスの派生である SampleWebBaseErrorEvent クラスのコンストラクタから呼び出す方法を、次のコード例に示します。
' 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 'New
// 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()); }
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- WebBaseErrorEvent コンストラクタのページへのリンク