IIS 7.0: Web Server Core In ...


IIS 7.0: IHttpTraceContext Interface

Provides a request-wide method for modules to raise events into the IIS 7 tracing infrastructure.

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.

Subclasses

This interface contains no subclasses.

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 [IIS 7].

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Vista.

Product

IIS 7

Header

Httpserv.h

See Also

Other Resources

Page view tracker