Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / mscorlib / system / cannotunloadappdomainexception.cs
blob6c9df903f78da1f6b2dd4ed9b070695c52b5efa4
1 // ==++==
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // ==--==
6 /*=============================================================================
7 **
8 ** Class: CannotUnloadAppDomainException
9 **
10 ** <OWNER>Microsoft</OWNER>
13 ** Purpose: Exception class for failed attempt to unload an AppDomain.
16 =============================================================================*/
18 namespace System {
20 using System.Runtime.Serialization;
22 [System.Runtime.InteropServices.ComVisible(true)]
23 [Serializable]
24 public class CannotUnloadAppDomainException : SystemException {
25 public CannotUnloadAppDomainException()
26 : base(Environment.GetResourceString("Arg_CannotUnloadAppDomainException")) {
27 SetErrorCode(__HResults.COR_E_CANNOTUNLOADAPPDOMAIN);
30 public CannotUnloadAppDomainException(String message)
31 : base(message) {
32 SetErrorCode(__HResults.COR_E_CANNOTUNLOADAPPDOMAIN);
35 public CannotUnloadAppDomainException(String message, Exception innerException)
36 : base(message, innerException) {
37 SetErrorCode(__HResults.COR_E_CANNOTUNLOADAPPDOMAIN);
41 //This constructor is required for serialization.
43 protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context) : base(info, context) {