PerformanceCounterScope 列舉

定義

指定是否啟用組件的效能計數器。

public enum class PerformanceCounterScope
public enum PerformanceCounterScope
type PerformanceCounterScope = 
Public Enum PerformanceCounterScope
繼承
PerformanceCounterScope

欄位

All 2

可在執行階段檢視效能計數器。

Default 3

已建立單一效能計數器執行個體 _WCF_Admin。 這個執行個體用於啟用基礎結構所使用之 SQM 資料的集合。 這個執行個體所有的計數器值都未更新,因此將維持在零。 如果沒有 Windows Communication Foundation (WCF) 的組態,則這是預設值。

Off 0

停用效能計數器。 這是預設值。

ServiceOnly 1

僅啟用與這個服務相關的效能計數器。

備註

您可以使用此列舉來設定 PerformanceCounters 屬性,指出是否已針對診斷用途啟用效能計數器。

適用於

另請參閱