表示定义了跟踪提供程序的配置节。
语法
class TraceProviderDefinitionsSection : ConfigurationSectionWithCollection
方法
下表列出了 TraceProviderDefinitionsSection 类公开的方法。
| 名称 | 说明 |
|---|---|
| 添加 | (继承自 ConfigurationSectionWithCollection。) |
| 清除 | (从 ConfigurationSectionWithCollection 继承。) |
| Get | (从 ConfigurationSectionWithCollection 继承。) |
| GetAllowDefinition | (继承自 ConfigurationSection。) |
| GetAllowLocation | (从 ConfigurationSection 继承。) |
| 删除 | (从 ConfigurationSectionWithCollection 继承。) |
| RevertToParent | (从 ConfigurationSection 继承。) |
| SetAllowDefinition | (从 ConfigurationSection 继承。) |
| SetAllowLocation | (从 ConfigurationSection 继承。) |
属性
下表列出了 TraceProviderDefinitionsSection 类公开的属性。
| 名称 | 描述 |
|---|---|
Location |
(继承自 ConfigurationSection。)一个键属性。 |
Path |
(继承自 ConfigurationSection。)一个键属性。 |
SectionInformation |
(从 ConfigurationSection 继承。) |
TraceProviderDefinitions |
TraceProviderDefinition 元素的读/写数组,它指定跟踪提供程序。 |
子类
此类不包含子类。
注解
此类对应于 ApplicationHost.config 文件中的 <traceProviderDefinitions> 部分。
继承层次结构
ConfigurationSectionWithCollection
TraceProviderDefinitionsSection
要求
| 类型 | 描述 |
|---|---|
| 客户端 | - 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 类
CollectionElement 类
为失败的请求创建跟踪规则
FailureDefinition 类
HttpTracingSection 类
TraceAreaElement 类
TraceAreaDefinition 类
TraceFailedRequestsSection 类
TraceProviderDefinition 类
TraceUrl 类