WebEventProvider.ProcessEvent Method
.NET Framework 3.5
Processes the event passed to the provider.
Assembly: System.Web (in System.Web.dll)
Parameters
- raisedEvent
- Type: System.Web.Management.WebBaseEvent
The WebBaseEvent object to process.
The following code example shows how to implement the ProcessEvent method. This method appends the customized string representation of the event to a specific log file.
// Process the event that has been raised. public override void ProcessEvent(WebBaseEvent raisedEvent) { if (msgCounter < maxMsgNumber) { // Buffer the event information. msgBuffer.Enqueue(raisedEvent); // Increment the message counter. msgCounter += 1; } else { // Flush the buffer. Flush(); } }
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.