TraceListener.Write TraceListener.Write TraceListener.Write TraceListener.Write Method

Definition

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.

Overloads

Write(Object) Write(Object) Write(Object) Write(Object)

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

Write(String) Write(String) Write(String) Write(String)

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

Write(Object, String) Write(Object, String) Write(Object, String) Write(Object, 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.

Write(String, String) Write(String, String) Write(String, String) Write(String, String)

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

Write(Object) Write(Object) Write(Object) Write(Object)

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

public:
 virtual void Write(System::Object ^ o);
public virtual void Write (object o);
abstract member Write : obj -> unit
override this.Write : obj -> unit
Public Overridable Sub Write (o As Object)
Parameters
o
Object Object Object Object

An Object whose fully qualified class name you want to write.

See Also

Write(String) Write(String) Write(String) Write(String)

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

public:
 abstract void Write(System::String ^ message);
public abstract void Write (string message);
abstract member Write : string -> unit
Public MustOverride Sub Write (message As String)
Parameters
message
String String String String

A message to write.

Notes to Inheritors

When inheriting from this class, you must implement this method. To support an indentation, you should call WriteIndent() if NeedIndent is true. If you need to indent the following line, you must reset NeedIndent to true.

See Also

Write(Object, String) Write(Object, String) Write(Object, String) Write(Object, 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.

public:
 virtual void Write(System::Object ^ o, System::String ^ category);
public virtual void Write (object o, string category);
abstract member Write : obj * string -> unit
override this.Write : obj * string -> unit
Public Overridable Sub Write (o As Object, category As String)
Parameters
o
Object Object Object Object

An Object whose fully qualified class name you want to write.

category
String String String String

A category name used to organize the output.

See Also

Write(String, String) Write(String, String) Write(String, String) Write(String, String)

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

public:
 virtual void Write(System::String ^ message, System::String ^ category);
public virtual void Write (string message, string category);
abstract member Write : string * string -> unit
override this.Write : string * string -> unit
Public Overridable Sub Write (message As String, category As String)
Parameters
message
String String String String

A message to write.

category
String String String String

A category name used to organize the output.

See Also

Applies to