Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents an HTTP tracing configuration section.
Syntax
class HttpTracingSection : ConfigurationSectionWithCollection
Methods
The following table lists the methods exposed by the HttpTracingSection class.
| Name | Description | 
|---|---|
| (Inherited from ConfigurationSectionWithCollection.) | |
| (Inherited from ConfigurationSectionWithCollection.) | |
| (Inherited from ConfigurationSectionWithCollection.) | |
| (Inherited from ConfigurationSection.) | |
| (Inherited from ConfigurationSection.) | |
| (Inherited from ConfigurationSectionWithCollection.) | |
| (Inherited from ConfigurationSection.) | |
| (Inherited from ConfigurationSection.) | |
| (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
ConfigurationSectionWithCollection
HttpTracingSection
Requirements
| Type | Description | 
|---|---|
| Client | Requires IIS 7 on Windows Vista. | 
| Server | Requires IIS 7 on Windows Server 2008. | 
| Product | IIS 7 | 
| MOF file | WebAdministration.mof | 
See Also
Reference
CollectionElement Class [IIS 7 and higher]
ConfigurationSectionWithCollection Class [IIS 7 and higher]
FailureDefinition Class [IIS 7 and higher]
TraceAreaElement Class [IIS 7 and higher]
TraceAreaDefinition Class [IIS 7 and higher]
TraceFailedRequestsSection Class [IIS 7 and higher]
TraceProviderDefinition Class [IIS 7 and higher]
TraceProviderDefinitionsSection Class [IIS 7 and higher]
TraceUrl Class [IIS 7 and higher]
TraceUrlSettings Class [IIS 7 and higher]