PerformanceCounterPermission 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 PerformanceCounterPermission 類別的新執行個體。
多載
PerformanceCounterPermission() |
初始化 PerformanceCounterPermission 類別的新執行個體。 |
PerformanceCounterPermission(PerformanceCounterPermissionEntry[]) |
使用指定的使用權限存取等級項目,初始化 PerformanceCounterPermission 類別的新執行個體。 |
PerformanceCounterPermission(PermissionState) |
使用指定權限狀態,初始化 PerformanceCounterPermission 類別的新執行個體。 |
PerformanceCounterPermission(PerformanceCounterPermissionAccess, String, String) |
使用指定的存取等級、要使用的電腦名稱,以及與效能計數器關聯的分類,初始化 PerformanceCounterPermission 類別的新執行個體。 |
PerformanceCounterPermission()
初始化 PerformanceCounterPermission 類別的新執行個體。
public:
PerformanceCounterPermission();
public PerformanceCounterPermission ();
Public Sub New ()
適用於
PerformanceCounterPermission(PerformanceCounterPermissionEntry[])
使用指定的使用權限存取等級項目,初始化 PerformanceCounterPermission 類別的新執行個體。
public:
PerformanceCounterPermission(cli::array <System::Diagnostics::PerformanceCounterPermissionEntry ^> ^ permissionAccessEntries);
public PerformanceCounterPermission (System.Diagnostics.PerformanceCounterPermissionEntry[] permissionAccessEntries);
new System.Diagnostics.PerformanceCounterPermission : System.Diagnostics.PerformanceCounterPermissionEntry[] -> System.Diagnostics.PerformanceCounterPermission
Public Sub New (permissionAccessEntries As PerformanceCounterPermissionEntry())
參數
- permissionAccessEntries
- PerformanceCounterPermissionEntry[]
PerformanceCounterPermissionEntry 物件的陣列。 PermissionEntries 屬性設為這個值。
例外狀況
permissionAccessEntries
為 null
。
適用於
PerformanceCounterPermission(PermissionState)
使用指定權限狀態,初始化 PerformanceCounterPermission 類別的新執行個體。
public:
PerformanceCounterPermission(System::Security::Permissions::PermissionState state);
public PerformanceCounterPermission (System.Security.Permissions.PermissionState state);
new System.Diagnostics.PerformanceCounterPermission : System.Security.Permissions.PermissionState -> System.Diagnostics.PerformanceCounterPermission
Public Sub New (state As PermissionState)
參數
- state
- PermissionState
其中一個 PermissionState 值。
例外狀況
state
參數不是有效的 PermissionState 值。
適用於
PerformanceCounterPermission(PerformanceCounterPermissionAccess, String, String)
使用指定的存取等級、要使用的電腦名稱,以及與效能計數器關聯的分類,初始化 PerformanceCounterPermission 類別的新執行個體。
public:
PerformanceCounterPermission(System::Diagnostics::PerformanceCounterPermissionAccess permissionAccess, System::String ^ machineName, System::String ^ categoryName);
public PerformanceCounterPermission (System.Diagnostics.PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName);
new System.Diagnostics.PerformanceCounterPermission : System.Diagnostics.PerformanceCounterPermissionAccess * string * string -> System.Diagnostics.PerformanceCounterPermission
Public Sub New (permissionAccess As PerformanceCounterPermissionAccess, machineName As String, categoryName As String)
參數
- permissionAccess
- PerformanceCounterPermissionAccess
- machineName
- String
伺服器,效能計數器和其相關的分類所在處。
- categoryName
- String
與效能計數器相關的效能計數器分類 (效能物件) 名稱。