Export (0) Print
Expand All

TraceListener.Write Method

Writes a message, category name, or the value of an object's ToString method to the listener you create when you implement the TraceListener class.

Overload List

Writes the value of the object's ToString method to the listener you create when you implement the TraceListener class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub Write(Object)
[C#] public virtual void Write(object);
[C++] public: virtual void Write(Object*);
[JScript] public function Write(Object);

When overridden in a derived class, writes the specified message to the listener you create in the derived class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Sub Write(String)
[C#] public abstract void Write(string);
[C++] public: virtual void Write(String*) = 0;
[JScript] public abstract function Write(String);

Writes a category name and the value of the object's ToString method to the listener you create when you implement the TraceListener class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub Write(Object, String)
[C#] public virtual void Write(object, string);
[C++] public: virtual void Write(Object*, String*);
[JScript] public function Write(Object, String);

Writes a category name and a message to the listener you create when you implement the TraceListener class.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Overridable Sub Write(String, String)
[C#] public virtual void Write(string, string);
[C++] public: virtual void Write(String*, String*);
[JScript] public function Write(String, String);

See Also

TraceListener Class | TraceListener Members | System.Diagnostics Namespace

Show:
© 2015 Microsoft