Export (0) Print
Expand All

EventLogPermissionAttribute Class

Allows declaritive permission checks for event logging.

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

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

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

EventLogPermissionAttribute Members | System.Diagnostics Namespace | EventLog | EventLogPermission | EventLogPermissionAccess | EventLogPermissionEntry | EventLogPermissionEntryCollection

Show:
© 2014 Microsoft