IHttpTraceContext Interface
Provides a request-wide method for modules to raise events into the IIS 7 tracing infrastructure.
Syntax
class IHttpTraceContext
Methods
The following table lists the methods exposed by the IHttpTraceContext
class.
Name | Description |
---|---|
GetTraceActivityId | Returns the trace activity identifier for the trace context. |
GetTraceConfiguration | Returns the trace configuration for the trace context. |
QuickTrace | Writes a message to the IIS trace log. |
RaiseTraceEvent | Raises a trace event for the trace context. |
SetTraceConfiguration | Sets the trace configuration for the trace context. |
Derived Classes
This interface contains no derived classes.
Remarks
To implement tracing, a module will generally call the IHttpContext::GetTraceContext method to get the IHttpTraceContext
interface, and then call the RaiseTraceEvent
method.
For more information about how to create and deploy a native DLL module, see Walkthrough: Creating a Request-Level HTTP Module By Using Native Code.
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - IIS Express 7.5, IIS Express 8.0, IIS Express 10.0 |
Header | Httpserv.h |