System.Web.Management.WebBaseEvent.ToString Method

Formats event information for display purposes.

Syntax

public override string ToString ()

Returns

The event information.

Remarks

The WebBaseEvent.ToString method is generally invoked by the provider that processes the event. The method ensures that the standard System.Web.Management.WebApplicationInformation object is provided with the event-specific data. It formats event information by calling the event-specific WebBaseEvent.FormatCustomEventDetails(WebEventFormatter) method.

Note:

When you format your custom event information for display, override the WebBaseEvent.FormatCustomEventDetails(WebEventFormatter) method rather than the erload:System.Web.Management.WebBaseEvent.ToString method. This will avoid overwriting or tampering with sensitive system information.

Requirements

Namespace: System.Web.Management
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0