Partager via


Logging.Information(String, String) Method

Definition

Displays messages that are useful, but do not represent a problem.

public:
 static void Information(System::String ^ appName, System::String ^ message);
public static void Information (string appName, string message);
static member Information : string * string -> unit
Public Shared Sub Information (appName As String, message As String)

Parameters

appName
String

Specifies the name of the application.

message
String

Specifies the message to place in the log.

Exceptions

Configuration-related exceptions are wrapped in this common exception type.

Logging listeners are not permitted to call methods of the Logging class.

Remarks

It only displays when the TraceSwitch is assigned TraceInfo. It takes the string passed in and sends it to any trace listener. It also will display it in a list control if one has been made available or in the various logs.

Applies to