BufferedWebEventProvider.ProcessEventFlush メソッドとは? わかりやすく解説

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

BufferedWebEventProvider.ProcessEventFlush メソッド

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

バッファされたイベント処理します

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

Public MustOverride Sub
 ProcessEventFlush ( _
    flushInfo As WebEventBufferFlushInfo _
)
Dim instance As BufferedWebEventProvider
Dim flushInfo As WebEventBufferFlushInfo

instance.ProcessEventFlush(flushInfo)
public abstract void ProcessEventFlush (
    WebEventBufferFlushInfo flushInfo
)
public:
virtual void ProcessEventFlush (
    WebEventBufferFlushInfo^ flushInfo
) abstract
public abstract void ProcessEventFlush (
    WebEventBufferFlushInfo flushInfo
)
public abstract function ProcessEventFlush
 (
    flushInfo : WebEventBufferFlushInfo
)

パラメータ

flushInfo

バッファ情報格納する WebEventBufferFlushInfo。

解説解説
使用例使用例

ProcessEventFlush メソッド実装するコード例次に示します

    ' 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);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BufferedWebEventProvider クラス
BufferedWebEventProvider メンバ
System.Web.Management 名前空間
その他の技術情報
healthMonitoring 要素 (ASP.NET 設定スキーマ)


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

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

辞書ショートカット

すべての辞書の索引

BufferedWebEventProvider.ProcessEventFlush メソッドのお隣キーワード
検索ランキング

   

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



BufferedWebEventProvider.ProcessEventFlush メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS