XmlWriterTraceListener Constructor (TextWriter)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the XmlWriterTraceListener class using the specified writer as the recipient of the debugging and tracing output.

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

public XmlWriterTraceListener(
	TextWriter writer
)

Parameters

writer
Type: System.IO.TextWriter

A TextWriter that receives the output from the trace listener.

Exception Condition
ArgumentNullException

writer is null.

The Name property is initialized to an empty string ("").

SecurityPermission

for the ability to call unmanaged code. Associated enumeration: UnmanagedCode.

.NET Framework
Available since 2.0
Return to top
Show: