HttpTracingSection Class

Represents an HTTP tracing configuration section.

Syntax

class HttpTracingSection : ConfigurationSectionWithCollection  

Methods

The following table lists the methods exposed by the HttpTracingSection class.

Name Description
Add (Inherited from ConfigurationSectionWithCollection.)
Clear (Inherited from ConfigurationSectionWithCollection.)
Get (Inherited from ConfigurationSectionWithCollection.)
GetAllowDefinition (Inherited from ConfigurationSection.)
GetAllowLocation (Inherited from ConfigurationSection.)
Remove (Inherited from ConfigurationSectionWithCollection.)
RevertToParent (Inherited from ConfigurationSection.)
SetAllowDefinition (Inherited from ConfigurationSection.)
SetAllowLocation (Inherited from ConfigurationSection.)

Properties

The following table lists the properties exposed by the HttpTracingSection class.

Name Description
TraceUrls A TraceUrlSettings value that specifies tracing for specific types of requests.
Location (Inherited from ConfigurationSection.) A key property.
Path (Inherited from ConfigurationSection.) A key property.
SectionInformation (Inherited from ConfigurationSection.)

Subclasses

This class contains no subclasses.

Remarks

This class corresponds to the <httpTracing> section in ApplicationHost.config and is used for Event Tracing for Windows (ETW) request-based tracing.

Example

The following code example displays the contents of the TraceUrls property.

' Connect to the WMI WebAdministration namespace.  
Set oWebAdmin = GetObject( _  
    "winmgmts:root\WebAdministration")  
  
' Get the HTTP tracing section.  
Set oSection = oWebAdmin.Get( _  
    "HttpTracingSection.Path=" & _  
    "'MACHINE/WEBROOT/APPHOST',Location=''")  
  
' Display the class name of the section.  
WScript.Echo "[ " & oSection.Path_.Class & " ]"  
  
' Display the path.  
WScript.Echo "Path: " & oSection.Path  
  
' Display the trace url values.  
For Each strElement In oSection.TraceUrls.TraceUrls  
    WScript.Echo strElement.Value  
Next  
  

Inheritance Hierarchy

ConfigurationSection

ConfigurationSectionWithCollection

HttpTracingSection

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
MOF file WebAdministration.mof

See Also

Create a Tracing Rule for Failed Requests
CollectionElement Class
ConfigurationSectionWithCollection Class
FailureDefinition Class
TraceAreaElement Class
TraceAreaDefinition Class
TraceFailedRequestsSection Class
TraceProviderDefinition Class
TraceProviderDefinitionsSection Class
TraceUrl Class
TraceUrlSettings Class