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

Dim message As String Dim eventSource As Object Dim eventCode As Integer Dim instance As New WebApplicationLifetimeEvent(message, eventSource, eventCode)
protected internal WebApplicationLifetimeEvent ( string message, Object eventSource, int eventCode )
protected public: WebApplicationLifetimeEvent ( String^ message, Object^ eventSource, int eventCode )
protected internal function WebApplicationLifetimeEvent ( message : String, eventSource : Object, eventCode : int )

このコンストラクタは、ASP.NET Health Monitoring system によって内部的に使用されます。WebApplicationLifetimeEvent オブジェクトのインスタンス化には使用しませんが、このクラスを継承する独自のイベント型を実装する場合には呼び出すことができます。
![]() |
---|
WebApplicationLifetimeEvent コンストラクタは、コードで直接使用するためのものではありません。ASP.NET によって呼び出されます。WebApplicationLifetimeEvent コンストラクタは、WebApplicationLifetimeEvent クラスの派生の場合に呼び出すことができます。 |

WebApplicationLifetimeEvent を ASP.NET カスタム状態イベントで使用する方法を次のコード例に示します。このコード例の主な目的は、使用するための正しい構文を示すことです。
' 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 SampleWebApplicationLifetimeEvent(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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebApplicationLifetimeEvent コンストラクタ

名前 | 説明 |
---|---|
WebApplicationLifetimeEvent (String, Object, Int32) | 指定したパラメータを使用して WebApplicationLifetimeEvent クラスを初期化します。 |
WebApplicationLifetimeEvent (String, Object, Int32, Int32) | 指定したパラメータを使用して WebApplicationLifetimeEvent クラスを初期化します。 |

WebApplicationLifetimeEvent コンストラクタ (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 WebApplicationLifetimeEvent(message, eventSource, eventCode, eventDetailCode)
protected internal WebApplicationLifetimeEvent ( string message, Object eventSource, int eventCode, int eventDetailCode )
protected public: WebApplicationLifetimeEvent ( String^ message, Object^ eventSource, int eventCode, int eventDetailCode )
protected WebApplicationLifetimeEvent ( String message, Object eventSource, int eventCode, int eventDetailCode )
protected internal function WebApplicationLifetimeEvent ( message : String, eventSource : Object, eventCode : int, eventDetailCode : int )

このコンストラクタは、ASP.NET Health Monitoring system によって内部的に使用されます。WebApplicationLifetimeEvent オブジェクトのインスタンス化には使用しませんが、このクラスを継承する独自のイベント型を実装する場合には呼び出すことができます。
![]() |
---|
WebApplicationLifetimeEvent コンストラクタは、コードで直接使用するためのものではありません。ASP.NET によって呼び出されます。WebApplicationLifetimeEvent コンストラクタは、WebApplicationLifetimeEvent クラスの派生の場合に呼び出すことができます。 |

WebApplicationLifetimeEvent を ASP.NET カスタム状態イベントで使用する方法を次のコード例に示します。このコード例の主な目的は、使用するための正しい構文を示すことです。
' 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 eventDetailCode As Integer) MyBase.New(msg, eventSource, _ eventCode, eventDetailCode) ' 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 SampleWebApplicationLifetimeEvent(string msg, object eventSource, int eventCode, int eventDetailCode): base(msg, eventSource, eventCode, eventDetailCode) { // 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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