Muokkaa

Jaa


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)

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

Write(String)

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

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)

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

Write(Object)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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);
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

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

See also

Applies to

Write(String)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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);
public abstract void Write (string message);
abstract member Write : string -> unit
Public MustOverride Sub Write (message As String)

Parameters

message
String

A message to write.

Notes to Implementers

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

Applies to

Write(Object, String)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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);
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

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

category
String

A category name used to organize the output.

See also

Applies to

Write(String, String)

Source:
TraceListener.cs
Source:
TraceListener.cs
Source:
TraceListener.cs

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);
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

A message to write.

category
String

A category name used to organize the output.

See also

Applies to