OciDescriptorHandle.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // OciDescriptorHandle.cs
  3. //
  4. // Part of managed C#/.NET library System.Data.OracleClient.dll
  5. //
  6. // Part of the Mono class libraries at
  7. // mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci
  8. //
  9. // Assembly: System.Data.OracleClient.dll
  10. // Namespace: System.Data.OracleClient.Oci
  11. //
  12. // Author:
  13. // Tim Coleman <[email protected]>
  14. //
  15. // Copyright (C) Tim Coleman, 2003
  16. //
  17. using System;
  18. using System.Runtime.InteropServices;
  19. namespace System.Data.OracleClient.Oci {
  20. internal abstract class OciDescriptorHandle : OciHandle
  21. {
  22. #region Constructors
  23. public OciDescriptorHandle (OciHandleType type, OciHandle parent, IntPtr newHandle)
  24. : base (type, parent, newHandle)
  25. {
  26. }
  27. #endregion // Constructors
  28. #region Methods
  29. [DllImport ("oci")]
  30. static extern int OCIDescriptorFree (IntPtr hndlp,
  31. [MarshalAs (UnmanagedType.U4)] OciHandleType type);
  32. protected override void FreeHandle ()
  33. {
  34. int status = 0;
  35. status = OCIDescriptorFree (this, HandleType);
  36. }
  37. #endregion // Methods
  38. }
  39. }