The Labs \ Source Viewer \ SSCLI \ System.Runtime.InteropServices \ _Exception

  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. ** Interface: _Exception
  18. **
  19. **
  20. ** Purpose: COM backwards compatibility with v1 Exception
  21. **        object layout.
  22. **
  23. **
  24. =============================================================================*/
  25. namespace System.Runtime.InteropServices
  26. {
  27.     using System;
  28.     using System.Reflection;
  29.     using System.Runtime.Serialization;
  30.     using System.Security.Permissions;
  31.    
  32.     [GuidAttribute("b36b5c63-42ef-38bc-a07e-0b34c98f164a")]
  33.     [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)]
  34.     [CLSCompliant(false)]
  35.     [System.Runtime.InteropServices.ComVisible(true)]
  36.     public interface _Exception
  37.     {
  38.         // This contains all of our V1 Exception class's members.
  39.        
  40.         // From Object
  41.         string ToString();
  42.         bool Equals(object obj);
  43.         int GetHashCode();
  44.         Type GetType();
  45.        
  46.         // From V1's Exception class
  47.         string Message {
  48.             get;
  49.         }
  50.        
  51.         Exception GetBaseException();
  52.        
  53.         string StackTrace {
  54.             get;
  55.         }
  56.        
  57.         string HelpLink {
  58.             get;
  59.             set;
  60.         }
  61.        
  62.         string Source {
  63.             get;
  64.             set;
  65.         }
  66.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
  67.         void GetObjectData(SerializationInfo info, StreamingContext context);
  68.        
  69.         Exception InnerException {
  70.             get;
  71.         }
  72.        
  73.         MethodBase TargetSite {
  74.             get;
  75.         }
  76.     }
  77.    
  78. }

Developer Fusion