System.Web.Management.WebApplicationInformation.FormatToString Method

Formats the application information.

Syntax

public void FormatToString (WebEventFormatter formatter)

Parameters

formatter
The System.Web.Management.WebEventFormatter that contains the tab and indentation settings used to format the Web health event information.

Remarks

The WebApplicationInformation.FormatToString(WebEventFormatter) method provides a uniform format for event information, which is useful if the event data must be logged and later presented to the user. It is called internally when the provider invokes one of the erload:System.Web.Management.WebBaseEvent.ToString methods.

Note:

When formatting your custom event information for display, override the WebApplicationInformation.FormatToString(WebEventFormatter) method rather than the WebApplicationInformation.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