다음을 통해 공유


HttpTracingSection 클래스

HTTP 추적 구성 섹션을 나타냅니다.

구문

class HttpTracingSection : ConfigurationSectionWithCollection  

메서드

다음 표에서는 클래스에 의해 노출되는 메서드를 나열합니다 HttpTracingSection .

속성 설명
추가 ConfigurationSectionWithCollection에서 상속됩니다.
지우기 ConfigurationSectionWithCollection에서 상속됩니다.
가져오기 ConfigurationSectionWithCollection에서 상속됩니다.
GetAllowDefinition ( ConfigurationSection에서 상속됩니다.)
GetAllowLocation ConfigurationSection에서 상속됩니다.
제거 ConfigurationSectionWithCollection에서 상속됩니다.
RevertToParent ConfigurationSection에서 상속됩니다.
SetAllowDefinition ConfigurationSection에서 상속됩니다.
SetAllowLocation ConfigurationSection에서 상속됩니다.

속성

다음 표에서는 클래스에 의해 노출되는 속성을 나열합니다 HttpTracingSection .

속성 Description
TraceUrls 특정 유형의 요청에 대한 추적을 지정하는 TraceUrlSettings 값입니다.
Location (에서 ConfigurationSection상속됨) 키 속성입니다.
Path (에서 ConfigurationSection상속됨) 키 속성입니다.
SectionInformation ConfigurationSection에서 상속됩니다.

를 서브클래싱합니다.

이 클래스에는 서브클래스가 없습니다.

설명

이 클래스는 <httpTracing> ApplicationHost.config 섹션에 해당하며 ETW(Windows용 이벤트 추적) 요청 기반 추적에 사용됩니다.

예제

다음 코드 예제에서는 내용을 표시 합니다 속성입니다 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  
  

상속 계층 구조

ConfigurationSection

ConfigurationSectionWithCollection

HttpTracingSection

요구 사항

형식 Description
클라이언트 - Windows Vista의 IIS 7.0
- Windows 7의 IIS 7.5
- Windows 8의 IIS 8.0
- WINDOWS 10 IIS 10.0
서버 - Windows Server 2008의 IIS 7.0
- Windows Server 2008 R2의 IIS 7.5
- Windows Server 2012의 IIS 8.0
- Windows Server 2012 R2의 IIS 8.5
- WINDOWS SERVER 2016 IIS 10.0
제품 - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF 파일 WebAdministration.mof

참고 항목

실패한 요청에 대한 추적 규칙 만들기
CollectionElement 클래스
ConfigurationSectionWithCollection 클래스
FailureDefinition 클래스
TraceAreaElement 클래스
TraceAreaDefinition 클래스
TraceFailedRequestsSection 클래스
TraceProviderDefinition 클래스
TraceProviderDefinitionsSection 클래스
TraceUrl 클래스
TraceUrlSettings 클래스