BufferedWebEventProvider.ProcessEventFlush メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim instance As BufferedWebEventProvider Dim flushInfo As WebEventBufferFlushInfo instance.ProcessEventFlush(flushInfo)

ProcessEventFlush メソッドは、バッファされたメッセージを処理します。ASP.NET Health Monitoring は、バッファをフラッシュする必要がある場合にこのメソッドを呼び出します。フラッシュする必要がある間隔は、healthMonitoring 構成セクションの providers 要素の bufferMode 属性のパラメータ値で決定されます。

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

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からBufferedWebEventProvider.ProcessEventFlush メソッドを検索する場合は、下記のリンクをクリックしてください。

- BufferedWebEventProvider.ProcessEventFlush メソッドのページへのリンク