Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 3.19 KB

File metadata and controls

45 lines (35 loc) · 3.19 KB
title IHttpTraceContext Interface
description Describes the IHttpTraceContext interface and details its syntax, methods, derived classes, remarks, and requirements.
ms.date 10/07/2016
ms.assetid 2bd121f6-32df-4f18-9cad-b83b82dd61e2

IHttpTraceContext Interface

Provides a request-wide method for modules to raise events into the [!INCLUDEiisver] 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 [!INCLUDEwinvista]
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on [!INCLUDEwinsrv2008]
- 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
- [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100]
Header Httpserv.h

See Also

Web Server Core Interfaces