using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System.Threading { /// The exception that is thrown when one thread acquires a object that another thread has abandoned by exiting without releasing it. /// 1 // Token: 0x02000606 RID: 1542 [ComVisible(false)] [Serializable] public class AbandonedMutexException : SystemException { /// Initializes a new instance of the class with default values. // Token: 0x0600387D RID: 14461 RVA: 0x000C3B90 File Offset: 0x000C1D90 public AbandonedMutexException() : base("Mutex was abandoned") { } /// Initializes a new instance of the class with a specified error message. /// An error message that explains the reason for the exception. // Token: 0x0600387E RID: 14462 RVA: 0x000C3BA4 File Offset: 0x000C1DA4 public AbandonedMutexException(string message) : base(message) { } /// Initializes a new instance of the class with a specified index for the abandoned mutex, if applicable, and a object that represents the mutex. /// The index of the abandoned mutex in the array of wait handles if the exception is thrown for the method, or –1 if the exception is thrown for the or methods. /// A object that represents the abandoned mutex. // Token: 0x0600387F RID: 14463 RVA: 0x000C3BB4 File Offset: 0x000C1DB4 public AbandonedMutexException(int location, WaitHandle handle) : base("Mutex was abandoned") { this.mutex_index = location; this.mutex = handle as Mutex; } /// Initializes a new instance of the class with serialized data. /// The object that holds the serialized object data about the exception being thrown. /// The object that contains contextual information about the source or destination. // Token: 0x06003880 RID: 14464 RVA: 0x000C3BDC File Offset: 0x000C1DDC protected AbandonedMutexException(SerializationInfo info, StreamingContext context) : base(info, context) { } /// Initializes a new instance of the class with a specified error message and inner exception. /// An error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. // Token: 0x06003881 RID: 14465 RVA: 0x000C3BF0 File Offset: 0x000C1DF0 public AbandonedMutexException(string message, Exception inner) : base(message, inner) { } /// Initializes a new instance of the class with a specified error message, the index of the abandoned mutex, if applicable, and the abandoned mutex. /// An error message that explains the reason for the exception. /// The index of the abandoned mutex in the array of wait handles if the exception is thrown for the method, or –1 if the exception is thrown for the or methods. /// A object that represents the abandoned mutex. // Token: 0x06003882 RID: 14466 RVA: 0x000C3C04 File Offset: 0x000C1E04 public AbandonedMutexException(string message, int location, WaitHandle handle) : base(message) { this.mutex_index = location; this.mutex = handle as Mutex; } /// Initializes a new instance of the class with a specified error message, the inner exception, the index for the abandoned mutex, if applicable, and a object that represents the mutex. /// An error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. /// The index of the abandoned mutex in the array of wait handles if the exception is thrown for the method, or –1 if the exception is thrown for the or methods. /// A object that represents the abandoned mutex. // Token: 0x06003883 RID: 14467 RVA: 0x000C3C28 File Offset: 0x000C1E28 public AbandonedMutexException(string message, Exception inner, int location, WaitHandle handle) : base(message, inner) { this.mutex_index = location; this.mutex = handle as Mutex; } /// Gets the abandoned mutex that caused the exception, if known. /// A object that represents the abandoned mutex, or null if the abandoned mutex could not be identified. /// 1 // Token: 0x17000AFC RID: 2812 // (get) Token: 0x06003884 RID: 14468 RVA: 0x000C3C50 File Offset: 0x000C1E50 public Mutex Mutex { get { return this.mutex; } } /// Gets the index of the abandoned mutex that caused the exception, if known. /// The index, in the array of wait handles passed to the method, of the object that represents the abandoned mutex, or –1 if the index of the abandoned mutex could not be determined. /// 1 // Token: 0x17000AFD RID: 2813 // (get) Token: 0x06003885 RID: 14469 RVA: 0x000C3C58 File Offset: 0x000C1E58 public int MutexIndex { get { return this.mutex_index; } } // Token: 0x040016D8 RID: 5848 private Mutex mutex; // Token: 0x040016D9 RID: 5849 private int mutex_index = -1; } }