PerformanceCounterPermission Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
Initializes a new instance of the PerformanceCounterPermission class.
public:
PerformanceCounterPermission();
public PerformanceCounterPermission ();
Public Sub New ()
Applies to
PerformanceCounterPermission(PerformanceCounterPermissionEntry[])
Initializes a new instance of the PerformanceCounterPermission class with the specified permission access level entries.
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())
Parameters
- permissionAccessEntries
- PerformanceCounterPermissionEntry[]
An array of PerformanceCounterPermissionEntry objects. The PermissionEntries property is set to this value.
Exceptions
permissionAccessEntries
is null
.
Applies to
PerformanceCounterPermission(PermissionState)
Initializes a new instance of the PerformanceCounterPermission class with the specified permission state.
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)
Parameters
- state
- PermissionState
One of the PermissionState values.
Exceptions
The state
parameter is not a valid value of PermissionState.
Applies to
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.
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)
Parameters
- permissionAccess
- PerformanceCounterPermissionAccess
One of the PerformanceCounterPermissionAccess values.
- 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
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par