54 lines
2.6 KiB
C#
54 lines
2.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when an attempt to unload an application domain fails.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x02000643 RID: 1603
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class CannotUnloadAppDomainException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.CannotUnloadAppDomainException" /> class.</summary>
|
|
// Token: 0x06003B6B RID: 15211 RVA: 0x000CA774 File Offset: 0x000C8974
|
|
public CannotUnloadAppDomainException()
|
|
: base(Locale.GetText("Attempt to unload application domain failed."))
|
|
{
|
|
base.HResult = -2146234347;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.CannotUnloadAppDomainException" /> class with a specified error message.</summary>
|
|
/// <param name="message">A <see cref="T:System.String" /> that describes the error. </param>
|
|
// Token: 0x06003B6C RID: 15212 RVA: 0x000CA794 File Offset: 0x000C8994
|
|
public CannotUnloadAppDomainException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2146234347;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.CannotUnloadAppDomainException" /> class from serialized data.</summary>
|
|
/// <param name="info">The object that holds the serialized object data. </param>
|
|
/// <param name="context">The contextual information about the source or destination. </param>
|
|
// Token: 0x06003B6D RID: 15213 RVA: 0x000CA7A8 File Offset: 0x000C89A8
|
|
protected CannotUnloadAppDomainException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.CannotUnloadAppDomainException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception. </param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
|
|
// Token: 0x06003B6E RID: 15214 RVA: 0x000CA7B4 File Offset: 0x000C89B4
|
|
public CannotUnloadAppDomainException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
base.HResult = -2146234347;
|
|
}
|
|
|
|
// Token: 0x040017C5 RID: 6085
|
|
private const int Result = -2146234347;
|
|
}
|
|
}
|