WebApplicationInformation.ToString 方法
定义
为显示而对事件信息进行格式化。Formats event information for display purposes.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
返回
事件信息。The event information.
示例
有关使用方法的示例 ToString ,请参见 WebEventProvider 。For an example of using the ToString method, see WebEventProvider.
注解
ToString方法通过调用方法设置事件信息的格式 FormatToString 。The ToString method formats event information by calling the FormatToString method.
备注
格式化要显示的自定义事件信息时,请重写 FormatToString 方法,而不是此 ToString 方法。When formatting your custom event information for display, override the FormatToString method rather than this ToString method. 这将避免覆盖或篡改敏感系统信息。This will avoid overwriting or tampering with sensitive system information.