TraceFailedRequestsSection 클래스
실패한 요청 추적 구성 섹션을 나타냅니다.
구문
class TraceFailedRequestsSection : ConfigurationSectionWithCollection
메서드
다음 표에서는 클래스에서 노출하는 메서드를 나열합니다 TraceFailedRequestsSection
.
속성 | 설명 |
---|---|
추가 | ConfigurationSectionWithCollection에서 상속됩니다. |
지우기 | ConfigurationSectionWithCollection 에서 상속됩니다. |
가져오기 | ConfigurationSectionWithCollection 에서 상속됩니다. |
GetAllowDefinition | ( ConfigurationSection에서 상속됩니다.) |
GetAllowLocation | ConfigurationSection 에서 상속됩니다. |
제거 | ConfigurationSectionWithCollection 에서 상속됩니다. |
RevertToParent | ConfigurationSection 에서 상속됩니다. |
SetAllowDefinition | ConfigurationSection 에서 상속됩니다. |
SetAllowLocation | ConfigurationSection 에서 상속됩니다. |
속성
다음 표에서는 클래스에서 노출하는 속성을 나열합니다 TraceFailedRequestsSection
.
속성 | Description |
---|---|
Location |
(에서 ConfigurationSection 상속됨) 키 속성입니다. |
Path |
(에서 ConfigurationSection 상속됨) 키 속성입니다. |
SectionInformation |
ConfigurationSection 에서 상속됩니다. |
TraceFailedRequests |
특정 요청 형식(예: *.aspx)에 대해 추적을 구성하는 TraceUrl 값의 읽기/쓰기 배열입니다. |
를 서브클래싱합니다.
이 클래스에는 하위 클래스가 없습니다.
설명
이 클래스는 ApplicationHost.config 섹션에 해당합니다 <traceFailedRequests>
.
예제
다음 예제에서는 기본 웹 사이트의 , Path
및 TraceFailedRequest
속성을 나열Location
합니다.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the default Web site.
Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")
' Place the TraceFailedRequestsSection object into a variable by
' using the GetSection method on the Site object.
oSite.GetSection "TraceFailedRequestsSection", oTFRSection
' Echo the path and location information.
WScript.Echo "Path: " & oTFRSection.Path
WScript.Echo "Location: " & oTFRSection.Location
WScript.Echo vbCRLF
' Retrieve and display the values for the TraceFailedRequests property.
For Each oTFR In oTFRSection.TraceFailedRequests
WScript.Echo "Trace URL path: " & oTFR.Path
WScript.Echo String(16 + Len(oTFR.Path), "=")
Set oFD = oTFR.FailureDefinitions
WScript.Echo "Failure Definition Status Codes: " & oFD.StatusCodes
WScript.Echo "Failure Definition TimeTaken: " & oFD.TimeTaken
WScript.Echo "Failure Definition Verbosity Level: " & _
GetVerbosityText(oFD.Verbosity)
WScript.Echo
For Each oTA In oTFR.TraceAreas.TraceAreas
WScript.Echo "Trace Provider: " & oTA.Provider
WScript.Echo "Trace Verbosity Level: " & _
GetVerbosityText(oTA.Verbosity)
If Not (oTA.Provider = "ASP" Or _
oTA.Provider = "ISAPI Extension") Then
WScript.Echo "Trace Areas: " & oTA.Areas
End If
WScript.Echo
Next
WScript.Echo
Next
' Provide text for the verbosity enumeration values.
Function GetVerbosityText(sint32Value)
Select Case sint32Value
Case 0
GetVerbosityText="General"
Case 1
GetVerbosityText="Critical Error"
Case 2
GetVerbosityText="Error"
Case 3
GetVerbosityText="Warning"
Case 4
GetVerbosityText="Information"
Case 5
GetVerbosityText="Verbose"
Case Else
GetVerbosityText ="Undefined Verbosity Level"
End Select
End Function
상속 계층 구조
ConfigurationSectionWithCollection
TraceFailedRequestsSection
요구 사항
형식 | 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 |
참고 항목
ConfigurationSectionWithCollection 클래스
HttpTracingSection 클래스
TraceAreaElement 클래스
TraceAreaDefinition 클래스
TraceProviderDefinition 클래스
TraceProviderDefinitionsSection 클래스
TraceUrl 클래스
TraceUrlAreaSettings 클래스
실패한 요청에 대한 추적 규칙 만들기