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
)

Parameters

permissionAccess

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

machineName

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

categoryName

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

Exception typeCondition

ArgumentNullException

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

-or-

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

ArgumentException

permissionAccess is not a valid PerformanceCounterPermissionAccess value.

-or-

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
Show: