WebEventBufferFlushInfo クラス
アセンブリ: System.Web (system.web.dll 内)


運用および操作の担当者は、ASP.NET Health Monitoring を使用して、配置されている Web アプリケーションを管理できます。System.Web.Management 名前空間には、アプリケーションの状態データをパッケージ化する状態イベント型、およびそのデータを処理するプロバイダ型が含まれます。また、状態イベント管理を支援するサポート型も含まれます。
WebEventBufferFlushInfo クラスは、バッファの現在の状態を示す値を定義します。このクラスのインスタンスは、バッファされているメッセージを処理する ProcessEventFlush メソッドに、パラメータとして渡されます。ASP.NET Health Monitoring は、バッファをフラッシュする必要がある場合にこのメソッドを呼び出します。これは、healthMonitoring 構成セクションの bufferModes 要素で定義されているパラメータで判断されます。
![]() |
---|
設計上、バッファリング機構は一部のイベントを破棄して受信イベントに追従する場合があります。これはユーザーが調整できます。調整するには、healthMonitoring 構成セクションの bufferModes 要素を変更します。 |

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.Web.Management.WebEventBufferFlushInfo


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebEventBufferFlushInfo プロパティ

名前 | 説明 | |
---|---|---|
![]() | Events | 現在のメッセージのイベント コレクションを取得します。 |
![]() | EventsDiscardedSinceLastNotification | 最後の通知以降に破棄されたイベント数を取得します。 |
![]() | EventsInBuffer | バッファ内のイベントの数を取得します。 |
![]() | LastNotificationUtc | 最後の通知の日付と時刻を取得します。 |
![]() | NotificationSequence | 現在の通知のメッセージ シーケンスを取得します。 |
![]() | NotificationType | 現在の通知の種類を取得します。 |

WebEventBufferFlushInfo メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

WebEventBufferFlushInfo メンバ
フラッシュ バッファの特性を定義するパラメータを格納します。
WebEventBufferFlushInfo データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | Events | 現在のメッセージのイベント コレクションを取得します。 |
![]() | EventsDiscardedSinceLastNotification | 最後の通知以降に破棄されたイベント数を取得します。 |
![]() | EventsInBuffer | バッファ内のイベントの数を取得します。 |
![]() | LastNotificationUtc | 最後の通知の日付と時刻を取得します。 |
![]() | NotificationSequence | 現在の通知のメッセージ シーケンスを取得します。 |
![]() | NotificationType | 現在の通知の種類を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- WebEventBufferFlushInfoのページへのリンク