言語

WebAuthenticationSuccessAuditEvent コンストラクター

定義

WebAuthenticationSuccessAuditEvent クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
WebAuthenticationSuccessAuditEvent(String, Object, Int32, String)

指定されたパラメーターを使用して、 WebAuthenticationSuccessAuditEvent クラスを初期化します。

WebAuthenticationSuccessAuditEvent(String, Object, Int32, Int32, String)

指定されたパラメーターを使用して、 WebSuccessAuditEvent クラスを初期化します。

WebAuthenticationSuccessAuditEvent(String, Object, Int32, String)

指定されたパラメーターを使用して、 WebAuthenticationSuccessAuditEvent クラスを初期化します。

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

パラメーター

message
String

イベントの説明。

eventSource
Object

イベントのソースであるオブジェクト。

eventCode
Int32

イベントに関連付けられているコード。 カスタム イベントを実装する場合、イベント コードは WebExtendedBaseより大きい必要があります。

nameToAuthenticate
String

認証されたユーザーの名前。

次のコード例は、このコンストラクターをカスタマイズする方法を示しています。

// Invoked in case of events identified only by their event code.
public SampleWebAuthenticationSuccessAuditEvent(
    string msg, object eventSource, 
    int eventCode, string userName):
base(msg, eventSource, eventCode, userName)
{
    // 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 userName As String)
    MyBase.New(msg, eventSource, eventCode, userName)
    ' Perform custom initialization.
    customCreatedMsg = _
    String.Format("Event created at: {0}", _
    DateTime.Now.TimeOfDay.ToString())

End Sub

注釈

このコンストラクターは、ASP.NET の正常性監視システムによって内部的に使用されます。 WebAuthenticationSuccessAuditEvent オブジェクトのインスタンス化には使用しませんが、このクラスから継承する独自のイベント型を実装するときに、このコンストラクターを呼び出すことができます。

Note

WebAuthenticationSuccessAuditEvent コンストラクターは、コードから直接使用するためのものではありません。 ASP.NET によって呼び出されます。 WebAuthenticationSuccessAuditEvent クラスから派生するときに、WebAuthenticationSuccessAuditEvent コンストラクターを呼び出すことができます。

適用対象

WebAuthenticationSuccessAuditEvent(String, Object, Int32, Int32, String)

指定されたパラメーターを使用して、 WebSuccessAuditEvent クラスを初期化します。

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

パラメーター

message
String

イベントの説明。

eventSource
Object

イベントのソースであるオブジェクト。

eventCode
Int32

イベントに関連付けられているコード。 カスタム イベントを実装する場合、イベント コードは WebExtendedBaseより大きい必要があります。

eventDetailCode
Int32

イベントの詳細な識別子を指定する WebEventCodes 値。

nameToAuthenticate
String

認証されたユーザーの名前。

次のコード例は、このコンストラクターをカスタマイズする方法を示しています。

// Invoked in case of events identified by their event code.and 
// event detailed code.
public SampleWebAuthenticationSuccessAuditEvent(
    string msg, object eventSource,
    int eventCode, int detailedCode, string userName):
base(msg, eventSource, eventCode, detailedCode, userName)
{
    // 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 
' event detailed code.
Public Sub New(ByVal msg As String, _
ByVal eventSource As Object, _
ByVal eventCode As Integer, _
ByVal detailedCode As Integer, _
ByVal userName As String)
    MyBase.New(msg, eventSource, eventCode, _
    detailedCode, userName)
    ' Perform custom initialization.
    customCreatedMsg = _
    String.Format( _
    "Event created at: {0}", _
    DateTime.Now.TimeOfDay.ToString())

End Sub

注釈

このコンストラクターは、ASP.NET の正常性監視システムによって内部的に使用されます。 WebAuthenticationSuccessAuditEvent オブジェクトのインスタンス化には使用しませんが、このクラスから継承する独自のイベント型を実装するときに、このコンストラクターを呼び出すことができます。

Note

WebAuthenticationSuccessAuditEvent コンストラクターは、コードから直接使用するためのものではありません。 ASP.NET によって呼び出されます。 WebAuthenticationSuccessAuditEvent クラスから派生するときに、WebAuthenticationSuccessAuditEvent コンストラクターを呼び出すことができます。

適用対象