Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DefaultTraceListener::Write Method (String^)

 

Writes the output to the OutputDebugString function and to the Debugger::Log method.

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

public:
virtual void Write(
	String^ message
) override

Parameters

message
Type: System::String^

The message to write to OutputDebugString and Log.

For information about the Win32 OutputDebugString debugging function, see "OutputDebugString" in the Platform SDK or MSDN.

The following code example formats the results of a function and uses the Write(String^) method to write the first part of the message to a DefaultTraceListener.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: