Editare

Partajați prin


Trace.TraceWarning Method

Definition

Writes warning information to the trace listeners in the Listeners collection.

Overloads

TraceWarning(String, Object[])

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

TraceWarning(String)

Writes a warning message to the trace listeners in the Listeners collection using the specified message.

TraceWarning(String, Object[])

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

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

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

TraceWarning calls the TraceEvent methods in the trace listeners with the trace event type Warning, 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

TraceWarning(String)

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

Writes a warning message to the trace listeners in the Listeners collection using the specified message.

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

Parameters

message
String

The informative message to write.

Attributes

Remarks

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

See also

Applies to