HTTP トレース構成セクションを表します。
構文
class HttpTracingSection : ConfigurationSectionWithCollection
メソッド
次の表に、HttpTracingSection クラスによって公開されるメソッドの一覧を示します。
| 名前 | 説明 |
|---|---|
| [追加] | (ConfigurationSectionWithCollection から継承。) |
| Clear | (ConfigurationSectionWithCollection から継承。) |
| Get | (ConfigurationSectionWithCollection から継承。) |
| GetAllowDefinition | (ConfigurationSection から継承。) |
| GetAllowLocation | (ConfigurationSection から継承。) |
| 削除 | (ConfigurationSectionWithCollection から継承。) |
| RevertToParent | (ConfigurationSection から継承。) |
| SetAllowDefinition | (ConfigurationSection から継承。) |
| SetAllowLocation | (ConfigurationSection から継承。) |
プロパティ
次の表は、HttpTracingSection クラスによって公開されるプロパティの一覧です。
| 名前 | 説明 |
|---|---|
TraceUrls |
特定の種類の要求のトレースを指定する TraceUrlSettings 値。 |
Location |
(ConfigurationSection から継承。)キー プロパティ。 |
Path |
(ConfigurationSection から継承。)キー プロパティ。 |
SectionInformation |
(ConfigurationSection から継承。) |
サブクラス
このクラスにはサブクラスが含まれていません。
解説
このクラスは ApplicationHost.config の <httpTracing> セクションに対応し、Windows イベント トレーシング (ETW) の要求ベースのトレースに使用されます。
例
次のコード例は、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
継承階層
ConfigurationSectionWithCollection
HttpTracingSection
要件
| 型 | 説明 |
|---|---|
| クライアント | - 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 |
| Product | - 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 クラス