PerformanceCounterPermissionAttribute | serializable |
System.Diagnostics (system.dll) | class |
This class is
a
System.Security.Permissions.SecurityAttribute that
explicitly allows you to set required or denied performance counter
permissions. You can use the CategoryName,
MachineName, and
PermissionAccess properties to indicate the
required permissions for a specific
PerformanceCounter.
public class PerformanceCounterPermissionAttribute : System.Security.Permissions.CodeAccessSecurityAttribute {
// Public Constructors
public PerformanceCounterPermissionAttribute(System.Security.Permissions.SecurityAction action);
// Public Instance Properties
public string CategoryName{set; get; }
public string MachineName{set; get; }
public PerformanceCounterPermissionAccess PermissionAccess{set; get; }
// Public Instance Methods
public override IPermission CreatePermission( );
// overrides System.Security.Permissions.SecurityAttribute
}
Hierarchy
System.Object
System.Attribute
System.Security.Permissions.SecurityAttribute
System.Security.Permissions.CodeAccessSecurityAttribute
PerformanceCounterPermissionAttribute
Valid On
Assembly, Class, Struct, Constructor, Method, Event
|