EventLogPermissionAttribute.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // System.Diagnostics.EventLogPermissionAttribute.cs
  3. //
  4. // Authors:
  5. // Jonathan Pryor ([email protected])
  6. //
  7. // (C) 2002
  8. //
  9. using System;
  10. using System.Diagnostics;
  11. using System.Security;
  12. using System.Security.Permissions;
  13. namespace System.Diagnostics {
  14. [AttributeUsage(
  15. AttributeTargets.Assembly | AttributeTargets.Class |
  16. AttributeTargets.Struct | AttributeTargets.Constructor |
  17. AttributeTargets.Method | AttributeTargets.Event)]
  18. [Serializable]
  19. [MonoTODO("Just Stubbed Out")]
  20. public class EventLogPermissionAttribute : CodeAccessSecurityAttribute {
  21. public EventLogPermissionAttribute(SecurityAction action)
  22. : base(action)
  23. {
  24. }
  25. // // May throw ArgumentException if computer name is invalid
  26. // public string MachineName {
  27. // get {throw new NotImplementedException();}
  28. // set {throw new NotImplementedException();}
  29. // }
  30. //
  31. // public EventLogPermissionAccess PermissionAccess {
  32. // get {throw new NotImplementedException();}
  33. // set {throw new NotImplementedException();}
  34. // }
  35. //
  36. [MonoTODO]
  37. public override IPermission CreatePermission()
  38. {
  39. throw new NotImplementedException();
  40. }
  41. }
  42. }