PerformanceCounterPermission Constructors

Definition

Initializes a new instance of the PerformanceCounterPermission class.

Overloads

PerformanceCounterPermission()

Initializes a new instance of the PerformanceCounterPermission class.

PerformanceCounterPermission(PerformanceCounterPermissionEntry[])

Initializes a new instance of the PerformanceCounterPermission class with the specified permission access level entries.

PerformanceCounterPermission(PermissionState)

Initializes a new instance of the PerformanceCounterPermission class with the specified permission state.

PerformanceCounterPermission(PerformanceCounterPermissionAccess, String, String)

Initializes a new instance of the PerformanceCounterPermission class with the specified access levels, the name of the computer to use, and the category associated with the performance counter.

PerformanceCounterPermission()

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

Initializes a new instance of the PerformanceCounterPermission class.

C#
public PerformanceCounterPermission();

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

PerformanceCounterPermission(PerformanceCounterPermissionEntry[])

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

Initializes a new instance of the PerformanceCounterPermission class with the specified permission access level entries.

C#
public PerformanceCounterPermission(System.Diagnostics.PerformanceCounterPermissionEntry[] permissionAccessEntries);

Parameters

permissionAccessEntries
PerformanceCounterPermissionEntry[]

An array of PerformanceCounterPermissionEntry objects. The PermissionEntries property is set to this value.

Exceptions

permissionAccessEntries is null.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

PerformanceCounterPermission(PermissionState)

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

Initializes a new instance of the PerformanceCounterPermission class with the specified permission state.

C#
public PerformanceCounterPermission(System.Security.Permissions.PermissionState state);

Parameters

state
PermissionState

One of the PermissionState values.

Exceptions

The state parameter is not a valid value of PermissionState.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

PerformanceCounterPermission(PerformanceCounterPermissionAccess, String, String)

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

Initializes a new instance of the PerformanceCounterPermission class with the specified access levels, the name of the computer to use, and the category associated with the performance counter.

C#
public PerformanceCounterPermission(System.Diagnostics.PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName);

Parameters

machineName
String

The server on which the performance counter and its associate category reside.

categoryName
String

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10