Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TraceContext Members

TraceContext Members

Captures and presents execution details about a Web request. This class cannot be inherited.

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

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

  Name Description
Public property IsEnabled Gets or sets a value indicating whether tracing is enabled for the current Web request.
Public property TraceMode Gets or sets the sorted order in which trace messages should be output to a requesting browser.
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
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 Warn Overloaded. Writes trace information to the trace log. Unlike Write, all warnings appear in the log as red text.
Public method Write Overloaded. Writes trace information to the trace log.
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 MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Public event TraceFinished Raised by the TraceContext object to expose trace messages after all request information is gathered.
Top

Community Additions

ADD
Show:
© 2015 Microsoft