CannotUnloadAppDomainException.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Runtime.Serialization;
  5. namespace System
  6. {
  7. [Serializable]
  8. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  9. public class CannotUnloadAppDomainException : SystemException
  10. {
  11. internal const int COR_E_CANNOTUNLOADAPPDOMAIN = unchecked((int)0x80131015); // corresponds to __HResults.COR_E_CANNOTUNLOADAPPDOMAIN in corelib
  12. public CannotUnloadAppDomainException()
  13. : base(SR.Arg_CannotUnloadAppDomainException)
  14. {
  15. HResult = COR_E_CANNOTUNLOADAPPDOMAIN;
  16. }
  17. public CannotUnloadAppDomainException(string message)
  18. : base(message)
  19. {
  20. HResult = COR_E_CANNOTUNLOADAPPDOMAIN;
  21. }
  22. public CannotUnloadAppDomainException(string message, Exception innerException)
  23. : base(message, innerException)
  24. {
  25. HResult = COR_E_CANNOTUNLOADAPPDOMAIN;
  26. }
  27. protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context) : base(info, context)
  28. {
  29. }
  30. }
  31. }