PerformanceCounterPermissionEntry 构造函数

定义

初始化 PerformanceCounterPermissionEntry 类的新实例。

public:
 PerformanceCounterPermissionEntry(System::Diagnostics::PerformanceCounterPermissionAccess permissionAccess, System::String ^ machineName, System::String ^ categoryName);
public PerformanceCounterPermissionEntry (System.Diagnostics.PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName);
new System.Diagnostics.PerformanceCounterPermissionEntry : System.Diagnostics.PerformanceCounterPermissionAccess * string * string -> System.Diagnostics.PerformanceCounterPermissionEntry
Public Sub New (permissionAccess As PerformanceCounterPermissionAccess, machineName As String, categoryName As String)

参数

permissionAccess
PerformanceCounterPermissionAccess

PerformanceCounterPermissionAccess 值的按位组合。 PermissionAccess 属性被设置为该值。

machineName
String

性能计数器类别驻留的服务器。

categoryName
String

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

例外

categoryNamenull

machineNamenull

permissionAccess 不是有效的 PerformanceCounterPermissionAccess 值。

- 或 -

machineName 不是有效的计算机名称。

适用于