This documentation is archived and is not being maintained.

PerformanceCounterPermissionEntry Constructor

Initializes a new instance of the PerformanceCounterPermissionEntry class.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

public PerformanceCounterPermissionEntry (
	PerformanceCounterPermissionAccess permissionAccess,
	string machineName,
	string categoryName
public PerformanceCounterPermissionEntry (
	PerformanceCounterPermissionAccess permissionAccess, 
	String machineName, 
	String categoryName
public function PerformanceCounterPermissionEntry (
	permissionAccess : PerformanceCounterPermissionAccess, 
	machineName : String, 
	categoryName : String



A bitwise combination of the PerformanceCounterPermissionAccess values. The PermissionAccess property is set to this value.


The server on which the category of the performance counter resides.


The name of the performance counter category (performance object) with which this performance counter is associated.

Exception typeCondition


categoryName is a null reference (Nothing in Visual Basic).


machineName is a null reference (Nothing in Visual Basic).


permissionAccess is not a valid PerformanceCounterPermissionAccess value.


machineName is not a valid computer name.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0