WebAuthenticationSuccessAuditEvent 생성자

정의

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

오버로드

Name Description
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

이벤트와 연결된 코드입니다. 사용자 지정 이벤트를 구현할 때 이벤트 코드는 1보다 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 데는 사용하지 않지만 이 클래스에서 상속되는 고유한 이벤트 형식을 구현할 때 이 생성자를 호출할 수 있습니다.

메모

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

이벤트와 연결된 코드입니다. 사용자 지정 이벤트를 구현할 때 이벤트 코드는 1보다 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 데는 사용하지 않지만 이 클래스에서 상속되는 고유한 이벤트 형식을 구현할 때 이 생성자를 호출할 수 있습니다.

메모

WebAuthenticationSuccessAuditEvent 생성자는 코드에서 직접 사용할 수 없습니다. 그것은 ASP.NET 의해 호출됩니다. 클래스에서 파생할 WebAuthenticationSuccessAuditEvent 때 생성자를 호출할 WebAuthenticationSuccessAuditEvent 수 있습니다.

적용 대상