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

WebEventBufferFlushInfo クラス

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

フラッシュ バッファ特性定義するパラメータ格納します

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

Public NotInheritable Class
 WebEventBufferFlushInfo
Dim instance As WebEventBufferFlushInfo
public sealed class WebEventBufferFlushInfo
public ref class WebEventBufferFlushInfo sealed
public final class WebEventBufferFlushInfo
public final class WebEventBufferFlushInfo
解説解説
使用例使用例

WebEventBufferFlushInfo クラス使用するコード例次に示します。このコード例は、BufferedWebEventProvider クラストピック取り上げているコード例一部分です。

    ' Processes the messages that have been buffered.
    ' It is called by the ASP.NET when the flushing of 
    ' the buffer is required according to the parameters 
    ' defined in the <bufferModes> element of the 
    ' <healthMonitoring> configuration section.
    Public Overrides Sub
 ProcessEventFlush(ByVal flushInfo _
    As WebEventBufferFlushInfo)

        ' Customize event information to be sent to 
        ' the Windows Event Viewer Application Log.
        customInfo.AppendLine( _
        "SampleEventLogWebEventProvider buffer flush.")

        customInfo.AppendLine(String.Format( _
        "NotificationType: {0}", _
        GetNotificationType(flushInfo)))

        customInfo.AppendLine(String.Format( _
        "EventsInBuffer: {0}", _
        GetEventsInBuffer(flushInfo)))

        customInfo.AppendLine(String.Format( _
        "EventsDiscardedSinceLastNotification: {0}",
 _
GetEventsDiscardedSinceLastNotification( _
flushInfo)))

        ' Read each buffered event and send it to the
        ' Application Log.
        Dim eventRaised As WebBaseEvent
        For Each eventRaised In
 flushInfo.Events
            customInfo.AppendLine(eventRaised.ToString())
        Next eventRaised
        ' Store the information in the specified file.
        StoreToFile(customInfo, logFilePath, _
        FileMode.Append)
    End Sub 'ProcessEventFlush

// Processes the messages that have been buffered.
// It is called by the ASP.NET when the flushing of 
// the buffer is required.
public override void ProcessEventFlush(
    WebEventBufferFlushInfo flushInfo)
{

    // Customize event information to be sent to 
    // the Windows Event Viewer Application Log.
    customInfo.AppendLine(
        "SampleEventLogWebEventProvider buffer flush.");

    customInfo.AppendLine(
        string.Format("NotificationType: {0}",
        GetNotificationType(flushInfo)));

    customInfo.AppendLine(
        string.Format("EventsInBuffer: {0}",
        GetEventsInBuffer(flushInfo)));

    customInfo.AppendLine(
        string.Format(
        "EventsDiscardedSinceLastNotification: {0}",
        GetEventsDiscardedSinceLastNotification(flushInfo)));

   
    // Read each buffered event and send it to the
    // Application Log.
    foreach (WebBaseEvent eventRaised in flushInfo.Events)
        customInfo.AppendLine(eventRaised.ToString());

    // Store the information in the specified file.
    StoreToFile(customInfo, logFilePath, FileMode.Append);
}
継承階層継承階層
System.Object
  System.Web.Management.WebEventBufferFlushInfo
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

WebEventBufferFlushInfo プロパティ


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

参照参照

関連項目

WebEventBufferFlushInfo クラス
System.Web.Management 名前空間

その他の技術情報

healthMonitoring 要素 (ASP.NET 設定スキーマ)
healthMonitoring の bufferModes 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視
ASP.NET Health Monitoring イベントバッファリング

WebEventBufferFlushInfo メソッド


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

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

関連項目

WebEventBufferFlushInfo クラス
System.Web.Management 名前空間

その他の技術情報

healthMonitoring 要素 (ASP.NET 設定スキーマ)
healthMonitoring の bufferModes 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視
ASP.NET Health Monitoring イベントバッファリング

WebEventBufferFlushInfo メンバ

フラッシュ バッファ特性定義するパラメータ格納します

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


パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

WebEventBufferFlushInfo クラス
System.Web.Management 名前空間

その他の技術情報

healthMonitoring 要素 (ASP.NET 設定スキーマ)
healthMonitoring の bufferModes 要素 (ASP.NET 設定スキーマ)
ASP.NET の状態監視
ASP.NET Health Monitoring イベントバッファリング



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

辞書ショートカット

すべての辞書の索引

「WebEventBufferFlushInfo」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS