HttpTracingSection (clase)
Representa una sección de configuración del seguimiento HTTP.
Sintaxis
class HttpTracingSection : ConfigurationSectionWithCollection
Métodos
En la tabla siguiente se enumeran los métodos que expone la clase HttpTracingSection
.
Nombre | Descripción |
---|---|
Add (Agregar) | (Se hereda de ConfigurationSectionWithCollection). |
Borrar | (Se hereda de ConfigurationSectionWithCollection ). |
Get | (Se hereda de ConfigurationSectionWithCollection ). |
GetAllowDefinition | (Se hereda de ConfigurationSection). |
GetAllowLocation | (Se hereda de ConfigurationSection ). |
Remove | (Se hereda de ConfigurationSectionWithCollection ). |
RevertToParent | (Se hereda de ConfigurationSection ). |
SetAllowDefinition | (Se hereda de ConfigurationSection ). |
SetAllowLocation | (Se hereda de ConfigurationSection ). |
Propiedades
La siguiente tabla muestra las propiedades que expone la clase HttpTracingSection
.
Nombre | Descripción |
---|---|
TraceUrls |
Valor TraceUrlSettings que especifica el seguimiento de tipos específicos de solicitudes. |
Location |
(Se hereda de ConfigurationSection ). Una propiedad clave. |
Path |
(Se hereda de ConfigurationSection ). Una propiedad clave. |
SectionInformation |
(Se hereda de ConfigurationSection ). |
Subclases
Esta clase no contiene subclases.
Comentarios
Esta clase corresponde a la sección <httpTracing>
de ApplicationHost.config y se usa para el seguimiento basado en solicitudes de Seguimiento de eventos para Windows (ETW).
Ejemplo
En el ejemplo de código siguiente se muestra el contenido de la propiedad TraceUrls
.
' 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
Jerarquía de herencia
ConfigurationSectionWithCollection
HttpTracingSection
Requisitos
Tipo | Descripción |
---|---|
Remoto | - IIS 7.0 en Windows Vista - IIS 7.5 en Windows 7 - IIS 8.0 en Windows 8 - IIS 10.0 en Windows 10 |
Server | - IIS 7.0 en Windows Server 2008 - IIS 7.5 en Windows Server 2008 R2 - IIS 8.0 en Windows Server 2012 - IIS 8.5 en Windows Server 2012 R2 - IIS 10.0 en Windows Server 2016 |
Producto | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
Archivo MOF | WebAdministration.mof |
Consulte también
Creación de una regla de seguimiento de solicitudes con error
CollectionElement (clase)
ConfigurationSectionWithCollection (clase)
FailureDefinition (clase)
TraceAreaElement (clase)
TraceAreaDefinition (clase)
TraceFailedRequestsSection (clase)
TraceProviderDefinition (clase)
TraceProviderDefinitionsSection (clase)
TraceUrl (clase)
TraceUrlSettings (clase)