แก้ไข

แชร์ผ่าน


Trace.TraceInformation Method

Definition

Writes an informational message to the trace listeners in the Listeners collection.

Overloads

TraceInformation(String)

Writes an informational message to the trace listeners in the Listeners collection using the specified message.

TraceInformation(String, Object[])

Writes an informational message to the trace listeners in the Listeners collection using the specified array of objects and formatting information.

TraceInformation(String)

Source:
Trace.cs
Source:
Trace.cs
Source:
Trace.cs

Writes an informational message to the trace listeners in the Listeners collection using the specified message.

public:
 static void TraceInformation(System::String ^ message);
[System.Diagnostics.Conditional("TRACE")]
public static void TraceInformation (string? message);
[System.Diagnostics.Conditional("TRACE")]
public static void TraceInformation (string message);
[<System.Diagnostics.Conditional("TRACE")>]
static member TraceInformation : string -> unit
Public Shared Sub TraceInformation (message As String)

Parameters

message
String

The informative message to write.

Attributes

Remarks

TraceInformation calls the TraceEvent method for each trace listener, with the trace event type Information, passing the informative message as the message string.

See also

Applies to

TraceInformation(String, Object[])

Source:
Trace.cs
Source:
Trace.cs
Source:
Trace.cs

Writes an informational message to the trace listeners in the Listeners collection using the specified array of objects and formatting information.

public:
 static void TraceInformation(System::String ^ format, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.Conditional("TRACE")]
public static void TraceInformation (string format, params object?[]? args);
[System.Diagnostics.Conditional("TRACE")]
public static void TraceInformation (string format, params object[] args);
[<System.Diagnostics.Conditional("TRACE")>]
static member TraceInformation : string * obj[] -> unit
Public Shared Sub TraceInformation (format As String, ParamArray args As Object())

Parameters

format
String

A format string that contains zero or more format items, which correspond to objects in the args array.

args
Object[]

An object array containing zero or more objects to format.

Attributes

Remarks

TraceInformation calls the TraceEvent methods in the trace listeners with the trace event type Information, passing the message content as an object array with formatting information. See the Format method for more information about the format and args parameters.

See also

Applies to