WebFailureAuditEvent コンストラクタ (String, Object, Int32)
アセンブリ: System.Web (system.web.dll 内)

Dim message As String Dim eventSource As Object Dim eventCode As Integer Dim instance As New WebFailureAuditEvent(message, eventSource, eventCode)
protected internal function WebFailureAuditEvent ( message : String, eventSource : Object, eventCode : int )

このコンストラクタは、ASP.NET Health Monitoring system によって内部的に使用されます。WebFailureAuditEvent オブジェクトのインスタンス化には使用しませんが、このクラスを継承する独自のイベント型を実装する場合には呼び出すことができます。

このコンストラクタを SampleWebFailureAuditEvent クラスで呼び出す方法を次のコード例に示します。このコード例は、WebFailureAuditEvent クラスのトピックで取り上げているコード例の一部分です。
' 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) MyBase.New(msg, eventSource, eventCode) ' 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 SampleWebFailureAuditEvent(string msg, object eventSource, int eventCode): base(msg, eventSource, eventCode) { // 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebFailureAuditEvent コンストラクタ

名前 | 説明 |
---|---|
WebFailureAuditEvent (String, Object, Int32) | 指定されたパラメータを使用して、WebFailureAuditEvent クラスの新しいインスタンスを初期化します。 |
WebFailureAuditEvent (String, Object, Int32, Int32) | 指定されたパラメータを使用して、WebFailureAuditEvent クラスの新しいインスタンスを初期化します。 |

WebFailureAuditEvent コンストラクタ (String, Object, Int32, Int32)
アセンブリ: System.Web (system.web.dll 内)

Protected Friend Sub New ( _ message As String, _ eventSource As Object, _ eventCode As Integer, _ eventDetailCode As Integer _ )
Dim message As String Dim eventSource As Object Dim eventCode As Integer Dim eventDetailCode As Integer Dim instance As New WebFailureAuditEvent(message, eventSource, eventCode, eventDetailCode)
protected internal WebFailureAuditEvent ( string message, Object eventSource, int eventCode, int eventDetailCode )
protected public: WebFailureAuditEvent ( String^ message, Object^ eventSource, int eventCode, int eventDetailCode )
protected WebFailureAuditEvent ( String message, Object eventSource, int eventCode, int eventDetailCode )
protected internal function WebFailureAuditEvent ( message : String, eventSource : Object, eventCode : int, eventDetailCode : int )

このコンストラクタは、ASP.NET Health Monitoring system によって内部的に使用されます。WebFailureAuditEvent オブジェクトのインスタンス化には使用しませんが、このクラスを継承する独自のイベント型を実装する場合には呼び出すことができます。

このコンストラクタを SampleWebFailureAuditEvent クラスで呼び出す方法を次のコード例に示します。このコード例は、WebFailureAuditEvent クラスのトピックで取り上げているコード例の一部分です。
' Invoked in case of events identified by their event code and ' event detailed code. Public Sub New(ByVal msg As String, ByVal eventSource As Object, _ ByVal eventCode As Integer, ByVal detailedCode As Integer) MyBase.New(msg, eventSource, eventCode, detailedCode) ' 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 // event detailed code. public SampleWebFailureAuditEvent(string msg, object eventSource, int eventCode, int detailedCode): base(msg, eventSource, eventCode, detailedCode) { // 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- WebFailureAuditEvent コンストラクタのページへのリンク