Export (0) Print
Expand All

PerformanceCounterPermissionAttribute Class

Allows declaritive performance counter permission checks.

For a list of all members of this type, see PerformanceCounterPermissionAttribute Members.

System.Object
   System.Attribute
      System.Security.Permissions.SecurityAttribute
         System.Security.Permissions.CodeAccessSecurityAttribute
            System.Diagnostics.PerformanceCounterPermissionAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Assembly Or AttributeTargets.Class _
   Or AttributeTargets.Struct Or AttributeTargets.Constructor Or _
   AttributeTargets.Method Or AttributeTargets.Event)>
<Serializable>
Public Class PerformanceCounterPermissionAttribute
   Inherits CodeAccessSecurityAttribute
[C#]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class
   | AttributeTargets.Struct | AttributeTargets.Constructor |
   AttributeTargets.Method | AttributeTargets.Event)]
[Serializable]
public class PerformanceCounterPermissionAttribute :
   CodeAccessSecurityAttribute
[C++]
[AttributeUsage(AttributeTargets::Assembly |
   AttributeTargets::Class | AttributeTargets::Struct |
   AttributeTargets::Constructor | AttributeTargets::Method |
   AttributeTargets::Event)]
[Serializable]
public __gc class PerformanceCounterPermissionAttribute : public
   CodeAccessSecurityAttribute
[JScript]
public
   AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class |
   AttributeTargets.Struct | AttributeTargets.Constructor |
   AttributeTargets.Method | AttributeTargets.Event)
 Serializable
class PerformanceCounterPermissionAttribute extends
   CodeAccessSecurityAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

For more information about using attributes, see Extending Metadata Using Attributes.

Requirements

Namespace: System.Diagnostics

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

PerformanceCounterPermissionAttribute Members | System.Diagnostics Namespace | PerformanceCounter | PerformanceCounterPermission | PerformanceCounterPermissionAccess | PerformanceCounterPermissionEntry | PerformanceCounterPermissionEntryCollection

Show:
© 2014 Microsoft