WebAuthenticationSuccessAuditEventとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebAuthenticationSuccessAuditEventの意味・解説 

WebAuthenticationSuccessAuditEvent クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

正常終了した認証イベントに関する情報提供します

名前空間: System.Web.Management
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Class WebAuthenticationSuccessAuditEvent
    Inherits WebSuccessAuditEvent
Dim instance As WebAuthenticationSuccessAuditEvent
public class WebAuthenticationSuccessAuditEvent
 : WebSuccessAuditEvent
public ref class WebAuthenticationSuccessAuditEvent
 : public WebSuccessAuditEvent
public class WebAuthenticationSuccessAuditEvent
 extends WebSuccessAuditEvent
public class WebAuthenticationSuccessAuditEvent
 extends WebSuccessAuditEvent
解説解説

運用および操作担当者は、ASP.NET Health Monitoring使用して配置されている Web アプリケーション管理できます。System.Web.Management 名前空間には、アプリケーションの状態データパッケージ化する状態イベント型、およびそのデータ処理するプロバイダ型が含まれます。また、状態イベント管理支援するサポート型も含まれます。

次の一覧に、ASP.NETWebAuthenticationSuccessAuditEvent 型のイベント生成対象となる機能示します

メモメモ

既定で、ASP.NET監査エラーだけをログ記録するよう構成されます。これは、正常終了ログ記録するシステム リソース大量に消費されるためです。いつでも、正常終了ログ記録するように設定できます

WebAuthenticationSuccessAuditEvent発生すると、既定Authentication Success Events Raised パフォーマンス カウンタ更新されます。このパフォーマンス カウンタシステム モニタ (PerfMon) に表示するには、[カウンタ追加] ウィンドウで [パフォーマンス オブジェクト] ドロップダウンリストの [ASP.NET] をクリックしAuthentication Success Events Raised パフォーマンス カウンタ選択して、[追加] ボタンクリックします。詳細については、MSDN の「Using the System Monitor (PerfMon) with ASP.NET Applications」を参照してください

メモメモ

ほとんどの場合ASP.NET 状態監視型は実装のまま使用でき、healthMonitoring 構成セクションに値を指定して ASP.NET Health Monitoring system制御できます。状態監視型の派生として独自のイベントおよびプロバイダ作成することもできます。WebBaseEvent クラス派生例については、このトピックの例を参照してください

使用例使用例

次のコード例2 つ部分構成されます。最初構成ファイル抜粋で、次が WebAuthenticationSuccessAuditEvent イベントカスタマイズする方法を示すコードです。

次に示すのは、構成ファイルprovider セクションeventMappings セクション抜粋です。これらは既定設定済みです。構成する必要があるのは、healthMonitoring セクションrules 要素セットアップだけです。

<healthMonitoring
  enabled="true"
  heartBeatInterval="0">

    <providers>
      // Configure the provider to process 
      // the health events.
      <add name="EventLogProvider"
         type="System.Web.Management.EventLogWebEventProvider,
         System.Web,Version=2.0.3600.0,Culture=neutral,
         PublicKeyToken=b03f5f7f11d50a3a"/>
    </providers>
    
    <eventMappings>
       <clear />
       // Configure the custom event 
       // to handle the audit events. 
        <add name="SampleWebAuthenticationSuccessAuditEvent" 
          type="SamplesAspNet.SampleWebAuthenticationSuccessAuditEvent,
          webauthsuccessaudit, Version=1.0.1735.23144, Culture=neutral, 
          PublicKeyToken=dd969eda3f3f6ae1, processorArchitecture=MSIL" />
         
     </eventMappings>
     <rules>
       <clear/>
       // Establish the connection between custom event 
       // and the provider that must process it.
      <add name="Log Authentication Success Audits" 
        eventName="SampleWebAuthenticationFailureAuditEvent"
        provider="EventLogProvider" 
        profile="Custom" />\
     </rules>

</healthMonitoring>

WebAuthenticationSuccessAuditEvent イベントカスタマイズ方法次のコード例示します

Imports System
Imports System.Text
Imports System.Web
Imports System.Web.Management


' Implements a custom WebAuthenticationSuccessAuditEvent class. 

Public Class SampleWebAuthenticationSuccessAuditEvent
    Inherits System.Web.Management.WebAuthenticationSuccessAuditEvent
    Private customCreatedMsg, customRaisedMsg As
 String
    
    
    
    ' 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 'New
    
    
    ' 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 'New
    
    
    
    ' Raises the SampleWebAuthenticationSuccessAuditEvent.
    Public Overrides Sub
 Raise() 
        ' Perform custom processing.
        customRaisedMsg = String.Format( _
        "Event raised at: {0}", _
        DateTime.Now.TimeOfDay.ToString())
        
        ' Raise the event.
        WebBaseEvent.Raise(Me)
    
    End Sub 'Raise
    
    
    ' Obtains the current thread information.
    Public Function GetRequestInformation()
 _
    As WebRequestInformation
        ' No customization is allowed.
        Return RequestInformation

    End Function 'GetRequestInformation
    
    
    'Formats Web request event information.
    'This method is invoked indirectly by the provider 
    'using one of the overloaded ToString methods.
    Public Overrides Sub
 FormatCustomEventDetails(ByVal formatter _
    As WebEventFormatter)
        MyBase.FormatCustomEventDetails(formatter)

        ' Add custom data.
        formatter.AppendLine("")

        formatter.IndentationLevel += 1
        formatter.AppendLine( _
        "* SampleWebAuthenticationSuccessAuditEvent Start *")
        formatter.AppendLine( _
        String.Format("Request path: {0}",
 _
        RequestInformation.RequestPath))
        formatter.AppendLine( _
        String.Format("Request Url: {0}",
 _
        RequestInformation.RequestUrl))

        ' Display custom event timing.
        formatter.AppendLine(customCreatedMsg)
        formatter.AppendLine(customRaisedMsg)

        formatter.AppendLine( _
        "* SampleWebAuthenticationSuccessAuditEvent End *")

        formatter.IndentationLevel -= 1

    End Sub 'FormatCustomEventDetails
 
End Class 'SampleWebAuthenticationSuccessAuditEvent

using System;
using System.Text;
using System.Web;
using System.Web.Management;

namespace SamplesAspNet
{
    // Implements a custom WebAuthenticationSuccessAuditEvent class.
 
    public class SampleWebAuthenticationSuccessAuditEvent
 : 
        System.Web.Management.WebAuthenticationSuccessAuditEvent
    {
        private string customCreatedMsg, customRaisedMsg;


        // 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 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());
        }



        // Raises the SampleWebAuthenticationSuccessAuditEvent.
        public override void Raise()
        {
            // Perform custom processing.
            customRaisedMsg =
                string.Format("Event raised at: {0}",
 
                DateTime.Now.TimeOfDay.ToString());

            // Raise the event.
            WebBaseEvent.Raise(this);
        }


        // Obtains the current thread information.
        public WebRequestInformation GetRequestInformation()
        {
            // No customization is allowed.
            return RequestInformation;
        }


        //Formats Web request event information.
        //This method is invoked indirectly by the provider 
        //using one of the overloaded ToString methods.
        public override void FormatCustomEventDetails(WebEventFormatter
 formatter)
        {
            base.FormatCustomEventDetails(formatter);

            // Add custom data.
            formatter.AppendLine("");

            formatter.IndentationLevel += 1;
            formatter.AppendLine(
                "* SampleWebAuthenticationSuccessAuditEvent Start *");
            formatter.AppendLine(string.Format("Request path:
 {0}",
                RequestInformation.RequestPath));
            formatter.AppendLine(string.Format("Request Url:
 {0}",
                RequestInformation.RequestUrl));

            // Display custom event timing.
            formatter.AppendLine(customCreatedMsg);
            formatter.AppendLine(customRaisedMsg);

            formatter.AppendLine(
                "* SampleWebAuthenticationSuccessAuditEvent End *");

            formatter.IndentationLevel -= 1;

        }
    }

}
継承階層継承階層
System.Object
   System.Web.Management.WebBaseEvent
     System.Web.Management.WebManagementEvent
       System.Web.Management.WebAuditEvent
         System.Web.Management.WebSuccessAuditEvent
          System.Web.Management.WebAuthenticationSuccessAuditEvent
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebAuthenticationSuccessAuditEvent メンバ
System.Web.Management 名前空間
WebAuthenticationFailureAuditEvent クラス
WebEventCodes
その他の技術情報
healthMonitoring 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視

WebAuthenticationSuccessAuditEvent コンストラクタ (String, Object, Int32, Int32, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

名前空間: System.Web.Management
アセンブリ: System.Web (system.web.dll 内)
構文構文

Protected Friend Sub New
 ( _
    message As String, _
    eventSource As Object, _
    eventCode As Integer, _
    eventDetailCode As Integer, _
    nameToAuthenticate As String _
)
Dim message As String
Dim eventSource As Object
Dim eventCode As Integer
Dim eventDetailCode As Integer
Dim nameToAuthenticate As String

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

パラメータ

message

イベント説明

eventSource

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

eventCode

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

eventDetailCode

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

nameToAuthenticate

認証済みユーザーの名前。

解説解説

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

メモメモ

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

使用例使用例

このコンストラクタカスタマイズするコードの例次に示します

' 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 'New


// 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());
}

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebAuthenticationSuccessAuditEvent クラス
WebAuthenticationSuccessAuditEvent メンバ
System.Web.Management 名前空間

WebAuthenticationSuccessAuditEvent コンストラクタ (String, Object, Int32, String)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

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

名前空間: System.Web.Management
アセンブリ: System.Web (system.web.dll 内)
構文構文

Protected Friend Sub New
 ( _
    message As String, _
    eventSource As Object, _
    eventCode As Integer, _
    nameToAuthenticate As String _
)
Dim message As String
Dim eventSource As Object
Dim eventCode As Integer
Dim nameToAuthenticate As String

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

パラメータ

message

イベント説明

eventSource

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

eventCode

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

nameToAuthenticate

認証済みユーザーの名前。

解説解説

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

メモメモ

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

使用例使用例

このコンストラクタカスタマイズするコードの例次に示します

' 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 'New

// 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());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebAuthenticationSuccessAuditEvent クラス
WebAuthenticationSuccessAuditEvent メンバ
System.Web.Management 名前空間

WebAuthenticationSuccessAuditEvent コンストラクタ

WebAuthenticationSuccessAuditEvent クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
WebAuthenticationSuccessAuditEvent (String, Object, Int32, String) 指定したパラメータ使用して WebAuthenticationSuccessAuditEvent クラス初期化します。
WebAuthenticationSuccessAuditEvent (String, Object, Int32, Int32, String) 指定したパラメータ使用して WebSuccessAuditEvent クラス初期化します。
参照参照

関連項目

WebAuthenticationSuccessAuditEvent クラス
WebAuthenticationSuccessAuditEvent メンバ
System.Web.Management 名前空間

WebAuthenticationSuccessAuditEvent プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ ApplicationInformation  監視中の現在のアプリケーションに関する情報格納している WebApplicationInformation オブジェクト取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventCode  イベント関連付けられているコード値を取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventDetailCode  イベント詳細コード取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventID  イベント関連付けられている識別子取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventOccurrence  イベント発生した回数を表すカウンタ取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventSequence  アプリケーションによるイベントの発生回数取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventSource  イベント発生させるオブジェクト取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventTime  イベント発生した時刻取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ EventTimeUtc  イベント発生した時刻取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ Message  イベント説明するメッセージ取得します。 ( WebBaseEvent から継承されます。)
パブリック プロパティ NameToAuthenticate 認証済みユーザーの名前を取得します
パブリック プロパティ ProcessInformation  ASP.NET アプリケーション ホスト プロセスに関する情報取得します。 ( WebManagementEvent から継承されます。)
パブリック プロパティ RequestInformation  Web 要求関連付けられた情報取得します。 ( WebAuditEvent から継承されます。)
参照参照

関連項目

WebAuthenticationSuccessAuditEvent クラス
System.Web.Management 名前空間
WebAuthenticationFailureAuditEvent クラス
WebEventCodes

その他の技術情報

healthMonitoring 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視

WebAuthenticationSuccessAuditEvent メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WebAuthenticationSuccessAuditEvent クラス
System.Web.Management 名前空間
WebAuthenticationFailureAuditEvent クラス
WebEventCodes

その他の技術情報

healthMonitoring 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視

WebAuthenticationSuccessAuditEvent メンバ

正常終了した認証イベントに関する情報提供します

WebAuthenticationSuccessAuditEvent データ型公開されるメンバを以下の表に示します


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド WebAuthenticationSuccessAuditEvent オーバーロードされます。 WebAuthenticationSuccessAuditEvent クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ ApplicationInformation  監視中の現在のアプリケーションに関する情報格納している WebApplicationInformation オブジェクト取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventCode  イベント関連付けられているコード値を取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventDetailCode  イベント詳細コード取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventID  イベント関連付けられている識別子取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventOccurrence  イベント発生した回数を表すカウンタ取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventSequence  アプリケーションによるイベントの発生回数取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventSource  イベント発生させるオブジェクト取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventTime  イベント発生した時刻取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ EventTimeUtc  イベント発生した時刻取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ Message  イベント説明するメッセージ取得します。(WebBaseEvent から継承されます。)
パブリック プロパティ NameToAuthenticate 認証済みユーザーの名前を取得します
パブリック プロパティ ProcessInformation  ASP.NET アプリケーション ホスト プロセスに関する情報取得します。(WebManagementEvent から継承されます。)
パブリック プロパティ RequestInformation  Web 要求関連付けられた情報取得します。(WebAuditEvent から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WebAuthenticationSuccessAuditEvent クラス
System.Web.Management 名前空間
WebAuthenticationFailureAuditEvent クラス
WebEventCodes

その他の技術情報

healthMonitoring 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視


このページでは「.NET Framework クラス ライブラリ リファレンス」からWebAuthenticationSuccessAuditEventを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWebAuthenticationSuccessAuditEventを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWebAuthenticationSuccessAuditEvent を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「WebAuthenticationSuccessAuditEvent」の関連用語

WebAuthenticationSuccessAuditEventのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



WebAuthenticationSuccessAuditEventのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS