共用方式為


PerformanceCounterPermission 建構函式

定義

初始化 PerformanceCounterPermission 類別的新執行個體。

多載

PerformanceCounterPermission()

初始化 PerformanceCounterPermission 類別的新執行個體。

PerformanceCounterPermission(PerformanceCounterPermissionEntry[])

使用指定的使用權限存取等級項目,初始化 PerformanceCounterPermission 類別的新執行個體。

PerformanceCounterPermission(PermissionState)

使用指定權限狀態,初始化 PerformanceCounterPermission 類別的新執行個體。

PerformanceCounterPermission(PerformanceCounterPermissionAccess, String, String)

使用指定的存取等級、要使用的電腦名稱,以及與效能計數器關聯的分類,初始化 PerformanceCounterPermission 類別的新執行個體。

PerformanceCounterPermission()

來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs

初始化 PerformanceCounterPermission 類別的新執行個體。

public:
 PerformanceCounterPermission();
public PerformanceCounterPermission ();
Public Sub New ()

適用於

PerformanceCounterPermission(PerformanceCounterPermissionEntry[])

來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs

使用指定的使用權限存取等級項目,初始化 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 屬性設為這個值。

例外狀況

permissionAccessEntriesnull

適用於

PerformanceCounterPermission(PermissionState)

來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs

使用指定權限狀態,初始化 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.cs
來源:
PerformanceCounterPermission.cs
來源:
PerformanceCounterPermission.cs

使用指定的存取等級、要使用的電腦名稱,以及與效能計數器關聯的分類,初始化 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)

參數

machineName
String

伺服器,效能計數器和其相關的分類所在處。

categoryName
String

與效能計數器相關的效能計數器分類 (效能物件) 名稱。

適用於