다음을 통해 공유


WebAuthenticationFailureAuditEvent.NameToAuthenticate 속성

정의

인증할 사용자의 이름을 가져옵니다.

public:
 property System::String ^ NameToAuthenticate { System::String ^ get(); };
public string NameToAuthenticate { get; }
member this.NameToAuthenticate : string
Public ReadOnly Property NameToAuthenticate As String

속성 값

인증할 사용자의 이름입니다.

예제

다음 코드 예제에서는 속성을 사용 NameToAuthenticate 하는 방법을 보여 있습니다.

// Invoked in case of events identified by their event code.and 
// event detailed code.
public SampleWebAuthenticationFailureAuditEvent(
    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

설명

성공 감사에만 인증된 사용자의 이름이 포함되어야 합니다. 오류 감사는 일반적으로 암호 해독 또는 유효성 검사 실패로 인해 발생하므로 사용자 이름을 포함하지 않아야 합니다.

적용 대상

추가 정보