PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Post­Sharp­Trace Class
PostSharpTrace Class
Provides tracing functionality. An instance of the PostSharpTrace type implements a trace sink.
Inheritance Hierarchy
System.Object
  PostSharp.Extensibility.PostSharpTrace

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public sealed class PostSharpTrace

The PostSharpTrace type exposes the following members.

Constructors
  NameDescription
Public methodPostSharpTrace
Initialize a new PostSharpTrace sink.
Properties
  NameDescription
Public propertyEnabled
Determines whether the current trace sink is enabled.
Methods
  NameDescription
Public methodStatic memberEnableCategory(String)
Enables a trace category known by its name.
Public methodStatic memberEnableCategory(PostSharpTrace)
Enables a trace category known by its object.
Public methodWrite(String)
Writes a message to the current sink without formatting parameter.
Public methodWrite(String, Object)
Writes a message to the current sink with a single formatting parameter.
Public methodWrite(String, Object[])
Writes a message to the current sink with many formatting parameters.
Public methodWrite(String, Object, Object)
Writes a message to the current sink with two formatting parameters.
Public methodWrite(String, Object, Object, Object)
Writes a message to the current sink with three formatting parameters.
Public methodWriteLine(String)
Writes a message to the current sink without parameter, and issues a line break.
Public methodWriteLine(String, Object)
Writes a message to the current sink with a single formatting parameter, and issues a line break.
Public methodWriteLine(String, Object[])
Writes a message to the current sink with many formatting parameters, and issues a line break.
Public methodWriteLine(String, Object, Object)
Writes a message to the current sink with two formatting parameters, and issues a line break.
Public methodWriteLine(String, Object, Object, Object)
Writes a message to the current sink with three formatting parameters, and issues a line break.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also