Export (0) Print
Expand All

TraceSource Members

Provides a set of methods and properties that enable applications to trace the execution of code and associate trace messages with their source.

The following tables list the members exposed by the TraceSource type.

  Name Description
Public method TraceSource Overloaded. Initializes a new instance of the TraceSource class.
Top

  Name Description
Public property Attributes Gets the custom switch attributes defined in the application configuration file.
Public property Listeners Gets the collection of trace listeners for the trace source.
Public property Name Gets the name of the trace source.
Public property Switch Gets or sets the source switch value.
Top

(see also Protected Methods )
  Name Description
Public method Close Closes all the trace listeners in the trace listener collection.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Flush Flushes all the trace listeners in the trace listener collection.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Public method TraceData Overloaded. Writes trace data to the trace listeners in the Listeners collection.
Public method TraceEvent Overloaded. Writes a trace event message to the trace listeners in the Listeners collection.
Public method TraceInformation Overloaded. Writes an informational message to the trace listeners in the Listeners collection.
Public method TraceTransfer Writes trace transfer message to the trace listeners in the Listeners collection using the specified numeric identifier, message, and related activity identifier.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetSupportedAttributes Gets the custom attributes supported by the trace source.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft