SqlClientPermissionAttribute.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.Data.SqlClient.SqlClientPermissionAttribute.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. // Daniel Morgan ([email protected])
  7. //
  8. // (C) Ximian, Inc 2002
  9. //
  10. using System;
  11. using System.Data;
  12. using System.Data.Common;
  13. using System.Security;
  14. using System.Security.Permissions;
  15. namespace System.Data.SqlClient {
  16. [AttributeUsage(AttributeTargets.Assembly |
  17. AttributeTargets.Class |
  18. AttributeTargets.Struct |
  19. AttributeTargets.Constructor |
  20. AttributeTargets.Method)]
  21. [Serializable]
  22. public sealed class SqlClientPermissionAttribute :
  23. DBDataPermissionAttribute {
  24. [MonoTODO]
  25. [AttributeUsage(AttributeTargets.Assembly |
  26. AttributeTargets.Class |
  27. AttributeTargets.Struct |
  28. AttributeTargets.Constructor |
  29. AttributeTargets.Method)]
  30. [Serializable]
  31. public SqlClientPermissionAttribute(SecurityAction action) {
  32. // FIXME: do constructor
  33. }
  34. [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class
  35. | AttributeTargets.Struct | AttributeTargets.Constructor |
  36. AttributeTargets.Method)]
  37. [Serializable]
  38. public override IPermission CreatePermission() {
  39. throw new NotImplementedException ();
  40. }
  41. [MonoTODO]
  42. ~SqlClientPermissionAttribute() {
  43. // FIXME: destructor to release resources
  44. }
  45. }
  46. }