Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Trace.TraceWarning Method (String, Object[])

Note: This method is new in the .NET Framework version 2.0.

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

Namespace: System.Diagnostics
Assembly: System (in system.dll)

'Declaration
<ConditionalAttribute("TRACE")> _
Public Shared Sub TraceWarning ( _
	format As String, _
	ParamArray args As Object() _
)
'Usage
Dim format As String
Dim args As Object()

Trace.TraceWarning(format, args)
/** @attribute ConditionalAttribute("TRACE") */ 
public static void TraceWarning (
	String format, 
	Object[] args
)
ConditionalAttribute("TRACE") 
public static function TraceWarning (
	format : String, 
	... args : Object[]
)

Parameters

format

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

args

An object array containing zero or more objects to format.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.