System.Web.Management.WebBaseEvent.ToString Method

Formats event information for display purposes.

Syntax

public virtual string ToString (bool include_app_info, bool include_custom_event_details)

Parameters

include_app_info
Documentation for this section has not yet been entered.
include_custom_event_details
Documentation for this section has not yet been entered.

Returns

The event information.

Remarks

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

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