The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting \ IObjectHandle

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Class:  IObjectHandle
  18. **
  19. **
  20. ** IObjectHandle defines the interface for unwrapping objects.
  21. ** Objects that are marshal by value object can be returned through
  22. ** an indirection allowing the caller to control when the
  23. ** object is loaded into their domain. The caller can unwrap
  24. ** the object from the indirection through this interface.
  25. **
  26. **
  27. ===========================================================*/
  28. namespace System.Runtime.Remoting
  29. {
  30.    
  31.     using System;
  32.     using System.Runtime.InteropServices;
  33.    
  34.     [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown), GuidAttribute("C460E2B4-E199-412a-8456-84DC3E4838C3")]
  35.     [System.Runtime.InteropServices.ComVisible(true)]
  36.     public interface IObjectHandle
  37.     {
  38.         // Unwrap the object. Implementers of this interface
  39.         // typically have an indirect referece to another object.
  40.         object Unwrap();
  41.     }
  42. }

Developer Fusion