共用方式為


SystemDiagnosticsSection 類別

設定系統診斷和追蹤。

Syntax

class SystemDiagnosticsSection : ConfigurationSectionWithCollection  

方法

下表列出 類別所 SystemDiagnosticsSection 公開的方法。

名稱 描述
加入 (繼承自 ConfigurationSectionWithCollection.)
清除 (繼承自 ConfigurationSectionWithCollection。)
Get (繼承自 ConfigurationSectionWithCollection。)
GetAllowDefinition (繼承自 ConfigurationSection.)
GetAllowLocation (繼承自 ConfigurationSection。)
移除 (繼承自 ConfigurationSectionWithCollection。)
RevertToParent (繼承自 ConfigurationSection。)
SetAllowDefinition (繼承自 ConfigurationSection。)
SetAllowLocation (繼承自 ConfigurationSection。)

屬性

下表列出 類別所 SystemDiagnosticsSection 公開的屬性。

名稱 描述
Assert AssertSettings值,指定System.Diagnostics.Debug.Assert方法的使用者介面模式,以及訊息記錄檔的名稱。
Location (繼承自 ConfigurationSection .) 金鑰屬性。
Path (繼承自 ConfigurationSection .) 金鑰屬性。
PerformanceCounters PerformanceCounterSettings值,指定效能計數器所共用的全域記憶體大小。
SectionInformation (繼承自 ConfigurationSection。)
SharedListeners ListenerSettings值,其中包含任何來源或追蹤專案都可以參考的接聽程式。
Sources SourceSettings值,指定起始追蹤訊息的追蹤來源。
Switches 包含追蹤參數定義的 SwitchSettings 值。
Trace TraceSettings值,其中包含收集、儲存和路由追蹤訊息的接聽程式。

子類別

這個類別不包含子類別。

繼承階層架構

ConfigurationSection

ConfigurationSectionWithCollection

SystemDiagnosticsSection

規格需求

類型 Description
Client - 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

另請參閱

AssertSettings 類別
ConfigurationSectionWithCollection 類別
ListenerSettings 類別
PerformanceCounterSettings 類別
SourceSettings 類別
SwitchSettings 類別
TraceSettings 類別
System.Diagnostics.Debug.Assert 方法