Export (0) Print
Expand All

Trace.TraceError Method (String, Object[])

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

Writes an error 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)

[ConditionalAttribute(L"TRACE")] 
public:
static void TraceError (
	String^ format, 
	... array<Object^>^ args
)
/** @attribute ConditionalAttribute("TRACE") */ 
public static void TraceError (
	String format, 
	Object[] args
)
ConditionalAttribute("TRACE") 
public static function TraceError (
	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.

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

Community Additions

ADD
Show:
© 2014 Microsoft