Updates referencesource to .NET 4.7
[mono.git] / mcs / class / referencesource / mscorlib / system / cannotunloadappdomainexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*=============================================================================
7 **
8 ** Class: CannotUnloadAppDomainException
9 ** 
10 ** <OWNER>Microsoft</OWNER>
11 **
12 **
13 ** Purpose: Exception class for failed attempt to unload an AppDomain.
14 **
15 **
16 =============================================================================*/
17
18 namespace System {
19
20     using System.Runtime.Serialization;
21
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);
28         }
29     
30         public CannotUnloadAppDomainException(String message) 
31             : base(message) {
32             SetErrorCode(__HResults.COR_E_CANNOTUNLOADAPPDOMAIN);
33         }
34     
35         public CannotUnloadAppDomainException(String message, Exception innerException) 
36             : base(message, innerException) {
37             SetErrorCode(__HResults.COR_E_CANNOTUNLOADAPPDOMAIN);
38         }
39
40         //
41         //This constructor is required for serialization.
42         //
43         protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context) : base(info, context) {
44         }
45     }
46 }
47
48
49
50
51
52
53