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

Dim instance As BufferedWebEventProvider Dim eventRaised As WebBaseEvent instance.ProcessEvent(eventRaised)

ASP.NET Health Monitoring がイベント処理を開始するために呼び出すのはこのメソッドです。バッファリングが有効の場合、イベント情報はバッファされます。それ以外の場合、イベント情報は現在のログ機構にディスパッチされます。

ProcessEvent メソッドを実装するコード例を次に示します。
' Processes the incoming events. ' This method performs custom ' processing and, if buffering is ' enabled, it calls the base.ProcessEvent ' to buffer the event information. Public Overrides Sub ProcessEvent( _ ByVal eventRaised As WebBaseEvent) If UseBuffering Then ' Buffering enabled, call the base event to ' buffer event information. MyBase.ProcessEvent(eventRaised) Else ' Buffering disabled, store the current event ' now. customInfo.AppendLine("*** Buffering disabled ***") customInfo.AppendLine(eventRaised.ToString()) ' Store the information in the specified file. StoreToFile(customInfo, _ logFilePath, FileMode.Append) End If End Sub 'ProcessEvent
// Processes the incoming events. // This method performs custom processing and, // if buffering is enabled, it calls the // base.ProcessEvent to buffer the event // information. public override void ProcessEvent( WebBaseEvent eventRaised) { if (UseBuffering) // Buffering enabled, call the // base event to buffer event information. base.ProcessEvent(eventRaised); else { // Buffering disabled, store the // current event now. customInfo.AppendLine( "*** Buffering disabled ***"); 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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