Files
Dec2017-Script-Dump/mscorlib/System/UnhandledExceptionEventArgs.cs
2026-06-04 11:42:34 +02:00

59 lines
2.0 KiB
C#

using System;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
namespace System
{
/// <summary>Provides data for the event that is raised when there is an exception that is not handled in any application domain.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x020006BB RID: 1723
[ComVisible(true)]
[Serializable]
public class UnhandledExceptionEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.UnhandledExceptionEventArgs" /> class with the exception object and a common language runtime termination flag.</summary>
/// <param name="exception">The exception that is not handled. </param>
/// <param name="isTerminating">true if the runtime is terminating; otherwise, false. </param>
// Token: 0x0600410E RID: 16654 RVA: 0x000DD6BC File Offset: 0x000DB8BC
public UnhandledExceptionEventArgs(object exception, bool isTerminating)
{
this.exception = exception;
this.m_isTerminating = isTerminating;
}
/// <summary>Gets the unhandled exception object.</summary>
/// <returns>The unhandled exception object.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000C02 RID: 3074
// (get) Token: 0x0600410F RID: 16655 RVA: 0x000DD6D4 File Offset: 0x000DB8D4
public object ExceptionObject
{
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
get
{
return this.exception;
}
}
/// <summary>Indicates whether the common language runtime is terminating.</summary>
/// <returns>true if the runtime is terminating; otherwise, false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000C03 RID: 3075
// (get) Token: 0x06004110 RID: 16656 RVA: 0x000DD6DC File Offset: 0x000DB8DC
public bool IsTerminating
{
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
get
{
return this.m_isTerminating;
}
}
// Token: 0x04001A1B RID: 6683
private object exception;
// Token: 0x04001A1C RID: 6684
private bool m_isTerminating;
}
}