PerformanceCounterPermission 构造函数

定义

初始化 PerformanceCounterPermission 类的新实例。

重载

PerformanceCounterPermission()

初始化 PerformanceCounterPermission 类的新实例。

PerformanceCounterPermission(PerformanceCounterPermissionEntry[])

使用指定的权限访问级别项初始化 PerformanceCounterPermission 类的新实例。

PerformanceCounterPermission(PermissionState)

初始化具有指定权限状态的 PerformanceCounterPermission 类的一个新实例。

PerformanceCounterPermission(PerformanceCounterPermissionAccess, String, String)

使用指定的访问级别、要使用的计算机的名称以及与性能计数器关联的类别来初始化 PerformanceCounterPermission 类的新实例。

PerformanceCounterPermission()

Source:
PerformanceCounterPermission.cs
Source:
PerformanceCounterPermission.cs
Source:
PerformanceCounterPermission.cs

初始化 PerformanceCounterPermission 类的新实例。

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

适用于

PerformanceCounterPermission(PerformanceCounterPermissionEntry[])

Source:
PerformanceCounterPermission.cs
Source:
PerformanceCounterPermission.cs
Source:
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)

Source:
PerformanceCounterPermission.cs
Source:
PerformanceCounterPermission.cs
Source:
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)

Source:
PerformanceCounterPermission.cs
Source:
PerformanceCounterPermission.cs
Source:
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

此性能计数器关联的性能计数器类别(性能对象)的名称。

适用于