AbandonedMutexException Конструкторы
Определение
Инициализирует новый экземпляр класса AbandonedMutexException.Initializes a new instance of the AbandonedMutexException class.
Перегрузки
AbandonedMutexException() |
Инициализирует новый экземпляр класса AbandonedMutexException со значениями по умолчанию.Initializes a new instance of the AbandonedMutexException class with default values. |
AbandonedMutexException(String) |
Инициализирует новый экземпляр класса AbandonedMutexException с указанным сообщением об ошибке.Initializes a new instance of the AbandonedMutexException class with a specified error message. |
AbandonedMutexException(Int32, WaitHandle) |
Инициализирует новый экземпляр класса AbandonedMutexException, используя конкретиый индекс брошенного мьютекса, (если применимо), а также объект Mutex, представляющий мьютекс.Initializes a new instance of the AbandonedMutexException class with a specified index for the abandoned mutex, if applicable, and a Mutex object that represents the mutex. |
AbandonedMutexException(SerializationInfo, StreamingContext) |
Инициализирует новый экземпляр класса AbandonedMutexException с сериализованными данными.Initializes a new instance of the AbandonedMutexException class with serialized data. |
AbandonedMutexException(String, Exception) |
Выполняет инициализацию нового экземпляра класса AbandonedMutexException с указанным сообщением об ошибке и внутренним исключением.Initializes a new instance of the AbandonedMutexException class with a specified error message and inner exception. |
AbandonedMutexException(String, Int32, WaitHandle) |
Инициализирует новый экземпляр класса AbandonedMutexException указанным сообщением об ошибке, индексом брошенного мьютекса (если применимо), а также брошенным мьютексом.Initializes a new instance of the AbandonedMutexException class with a specified error message, the index of the abandoned mutex, if applicable, and the abandoned mutex. |
AbandonedMutexException(String, Exception, Int32, WaitHandle) |
Инициализирует новый экземпляр класса AbandonedMutexException, используя указанное сообщения об ошибке, внутреннее исключение, индекс брошенного мьютекса (если применимо), а также объект Mutex, представляющего мьютекс.Initializes a new instance of the AbandonedMutexException class with a specified error message, the inner exception, the index for the abandoned mutex, if applicable, and a Mutex object that represents the mutex. |
AbandonedMutexException()
Инициализирует новый экземпляр класса AbandonedMutexException со значениями по умолчанию.Initializes a new instance of the AbandonedMutexException class with default values.
public:
AbandonedMutexException();
public AbandonedMutexException ();
Public Sub New ()
Комментарии
Этот конструктор инициализирует Message свойство нового экземпляра, сопоставляя с ним системное сообщение, описывающее ошибку, например "Ожидание завершено из-за брошенного мьютекса".This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "The wait completed due to an abandoned mutex." Это сообщение учитывает культуру текущей системы.This message takes into account the current system culture.
В следующей таблице показаны первоначальные значения свойств для экземпляра AbandonedMutexException.The following table shows the initial property values for an instance of AbandonedMutexException.
СвойствоProperty | ЗначениеValue |
---|---|
InnerException | null .null . |
Message | Строка сообщения об ошибке, предоставляемая системой.The system-supplied error message string. |
Mutex | null .null . |
MutexIndex | -1 (минус единица).-1 (minus one). |
См. также раздел
Применяется к
AbandonedMutexException(String)
Инициализирует новый экземпляр класса AbandonedMutexException с указанным сообщением об ошибке.Initializes a new instance of the AbandonedMutexException class with a specified error message.
public:
AbandonedMutexException(System::String ^ message);
public AbandonedMutexException (string message);
public AbandonedMutexException (string? message);
new System.Threading.AbandonedMutexException : string -> System.Threading.AbandonedMutexException
Public Sub New (message As String)
Параметры
- message
- String
Сообщение об ошибке с объяснением причины исключения.An error message that explains the reason for the exception.
Комментарии
Содержимое message
должно быть понятно пользователю.The content of message
is intended to be understood by humans. Для гарантированной локализации этой строки для текущей системной культуры необходимы сведения о том, кто вызывает этот конструктор.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
В следующей таблице показаны начальные значения свойств для экземпляра, AbandonedMutexException инициализированного с помощью этого конструктора.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
СвойствоProperty | ЗначениеValue |
---|---|
InnerException | null .null . |
Message | message .message . |
Mutex | null .null . |
MutexIndex | -1 (минус единица).-1 (minus one). |
См. также раздел
Применяется к
AbandonedMutexException(Int32, WaitHandle)
Инициализирует новый экземпляр класса AbandonedMutexException, используя конкретиый индекс брошенного мьютекса, (если применимо), а также объект Mutex, представляющий мьютекс.Initializes a new instance of the AbandonedMutexException class with a specified index for the abandoned mutex, if applicable, and a Mutex object that represents the mutex.
public:
AbandonedMutexException(int location, System::Threading::WaitHandle ^ handle);
public AbandonedMutexException (int location, System.Threading.WaitHandle handle);
public AbandonedMutexException (int location, System.Threading.WaitHandle? handle);
new System.Threading.AbandonedMutexException : int * System.Threading.WaitHandle -> System.Threading.AbandonedMutexException
Public Sub New (location As Integer, handle As WaitHandle)
Параметры
- location
- Int32
Индекс брошенного мьютекса в массиве дескрипторов ожидания, если выдается исключение для метода WaitAny, или –1, если исключение выдается для методов WaitOne или WaitAll.The index of the abandoned mutex in the array of wait handles if the exception is thrown for the WaitAny method, or -1 if the exception is thrown for the WaitOne or WaitAll methods.
- handle
- WaitHandle
Объект Mutex, представляющий брошенный мьютекс.A Mutex object that represents the abandoned mutex.
Комментарии
Этот конструктор инициализирует Message свойство нового экземпляра, сопоставляя с ним системное сообщение, описывающее ошибку, например "Ожидание завершено из-за брошенного мьютекса".This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "The wait completed due to an abandoned mutex." Это сообщение учитывает культуру текущей системы.This message takes into account the current system culture.
В следующей таблице показаны начальные значения свойств для экземпляра, AbandonedMutexException инициализированного с помощью этого конструктора.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
СвойствоProperty | ЗначениеValue |
---|---|
InnerException | null .null . |
Message | Строка сообщения об ошибке, предоставляемая системой.A system-supplied error message string. |
Mutex | handle .handle . |
MutexIndex | location .location . |
См. также раздел
Применяется к
AbandonedMutexException(SerializationInfo, StreamingContext)
Инициализирует новый экземпляр класса AbandonedMutexException с сериализованными данными.Initializes a new instance of the AbandonedMutexException class with serialized data.
protected:
AbandonedMutexException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AbandonedMutexException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Threading.AbandonedMutexException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.AbandonedMutexException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Параметры
- info
- SerializationInfo
Объект SerializationInfo, содержащий сериализованные данные объекта по возникающему исключению.The SerializationInfo object that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
Объект StreamingContext, содержащий контекстные сведения об источнике или назначении.The StreamingContext object that contains contextual information about the source or destination.
Комментарии
Этот конструктор вызывается во время десериализации для восстановления объекта исключения, переданного в потоке.This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. Дополнительные сведения см. в разделе сериализация XML и SOAP.For more information, see XML and SOAP Serialization.
См. также раздел
Применяется к
AbandonedMutexException(String, Exception)
Выполняет инициализацию нового экземпляра класса AbandonedMutexException с указанным сообщением об ошибке и внутренним исключением.Initializes a new instance of the AbandonedMutexException class with a specified error message and inner exception.
public:
AbandonedMutexException(System::String ^ message, Exception ^ inner);
public AbandonedMutexException (string message, Exception inner);
public AbandonedMutexException (string? message, Exception? inner);
new System.Threading.AbandonedMutexException : string * Exception -> System.Threading.AbandonedMutexException
Public Sub New (message As String, inner As Exception)
Параметры
- message
- String
Сообщение об ошибке с объяснением причины исключения.An error message that explains the reason for the exception.
- inner
- Exception
Исключение, которое является причиной текущего исключения.The exception that is the cause of the current exception. Если значение параметра inner
не равно null
, текущее исключение сгенерировано в блоке catch
, обрабатывающем внутреннее исключение.If the inner
parameter is not null
, the current exception is raised in a catch
block that handles the inner exception.
Комментарии
Содержимое message
должно быть понятно пользователю.The content of message
is intended to be understood by humans. Для гарантированной локализации этой строки для текущей системной культуры необходимы сведения о том, кто вызывает этот конструктор.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
Исключение, созданное как прямой результат предыдущего исключения, должно содержать в свойстве InnerException ссылку на предыдущее исключение.An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. Свойство InnerException возвращает то же значение, которое передается в конструктор, или null
, если свойство InnerException не предоставляет значение внутреннего исключения в конструктор.The InnerException property returns the same value that is passed into the constructor, or null
if the InnerException property does not supply the inner exception value to the constructor.
В следующей таблице показаны начальные значения свойств для экземпляра, AbandonedMutexException инициализированного с помощью этого конструктора.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
СвойствоProperty | ЗначениеValue |
---|---|
InnerException | inner .inner . |
Message | message .message . |
Mutex | null .null . |
MutexIndex | -1 (минус единица).-1 (minus one). |
См. также раздел
Применяется к
AbandonedMutexException(String, Int32, WaitHandle)
Инициализирует новый экземпляр класса AbandonedMutexException указанным сообщением об ошибке, индексом брошенного мьютекса (если применимо), а также брошенным мьютексом.Initializes a new instance of the AbandonedMutexException class with a specified error message, the index of the abandoned mutex, if applicable, and the abandoned mutex.
public:
AbandonedMutexException(System::String ^ message, int location, System::Threading::WaitHandle ^ handle);
public AbandonedMutexException (string message, int location, System.Threading.WaitHandle handle);
public AbandonedMutexException (string? message, int location, System.Threading.WaitHandle? handle);
new System.Threading.AbandonedMutexException : string * int * System.Threading.WaitHandle -> System.Threading.AbandonedMutexException
Public Sub New (message As String, location As Integer, handle As WaitHandle)
Параметры
- message
- String
Сообщение об ошибке с объяснением причины исключения.An error message that explains the reason for the exception.
- location
- Int32
Индекс брошенного мьютекса в массиве дескрипторов ожидания, если выдается исключение для метода WaitAny, или –1, если исключение выдается для методов WaitOne или WaitAll.The index of the abandoned mutex in the array of wait handles if the exception is thrown for the WaitAny method, or -1 if the exception is thrown for the WaitOne or WaitAll methods.
- handle
- WaitHandle
Объект Mutex, представляющий брошенный мьютекс.A Mutex object that represents the abandoned mutex.
Комментарии
Содержимое message
должно быть понятно пользователю.The content of message
is intended to be understood by humans. Для гарантированной локализации этой строки для текущей системной культуры необходимы сведения о том, кто вызывает этот конструктор.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
В следующей таблице показаны начальные значения свойств для экземпляра, AbandonedMutexException инициализированного с помощью этого конструктора.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
СвойствоProperty | ЗначениеValue |
---|---|
InnerException | null .null . |
Message | message .message . |
Mutex | handle .handle . |
MutexIndex | location .location . |
См. также раздел
Применяется к
AbandonedMutexException(String, Exception, Int32, WaitHandle)
Инициализирует новый экземпляр класса AbandonedMutexException, используя указанное сообщения об ошибке, внутреннее исключение, индекс брошенного мьютекса (если применимо), а также объект Mutex, представляющего мьютекс.Initializes a new instance of the AbandonedMutexException class with a specified error message, the inner exception, the index for the abandoned mutex, if applicable, and a Mutex object that represents the mutex.
public:
AbandonedMutexException(System::String ^ message, Exception ^ inner, int location, System::Threading::WaitHandle ^ handle);
public AbandonedMutexException (string message, Exception inner, int location, System.Threading.WaitHandle handle);
public AbandonedMutexException (string? message, Exception? inner, int location, System.Threading.WaitHandle? handle);
new System.Threading.AbandonedMutexException : string * Exception * int * System.Threading.WaitHandle -> System.Threading.AbandonedMutexException
Public Sub New (message As String, inner As Exception, location As Integer, handle As WaitHandle)
Параметры
- message
- String
Сообщение об ошибке с объяснением причины исключения.An error message that explains the reason for the exception.
- inner
- Exception
Исключение, которое является причиной текущего исключения.The exception that is the cause of the current exception. Если значение параметра inner
не равно null
, текущее исключение сгенерировано в блоке catch
, обрабатывающем внутреннее исключение.If the inner
parameter is not null
, the current exception is raised in a catch
block that handles the inner exception.
- location
- Int32
Индекс брошенного мьютекса в массиве дескрипторов ожидания, если выдается исключение для метода WaitAny, или –1, если исключение выдается для методов WaitOne или WaitAll.The index of the abandoned mutex in the array of wait handles if the exception is thrown for the WaitAny method, or -1 if the exception is thrown for the WaitOne or WaitAll methods.
- handle
- WaitHandle
Объект Mutex, представляющий брошенный мьютекс.A Mutex object that represents the abandoned mutex.
Комментарии
Содержимое — это message
текстовая строка, предназначенная для информирования пользователя об исключении.The content of message
is a text string intended to inform the user about the exception. Для гарантированной локализации этой строки для текущей системной культуры необходимы сведения о том, кто вызывает этот конструктор.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
Исключение, созданное как прямой результат предыдущего исключения, должно содержать в свойстве InnerException ссылку на предыдущее исключение.An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. Свойство InnerException возвращает то же значение, которое передается в конструктор, или null
, если свойство InnerException не предоставляет значение внутреннего исключения в конструктор.The InnerException property returns the same value that is passed into the constructor, or null
if the InnerException property does not supply the inner exception value to the constructor.
В следующей таблице показаны начальные значения свойств для экземпляра, AbandonedMutexException инициализированного с помощью этого конструктора.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
СвойствоProperty | ЗначениеValue |
---|---|
InnerException | inner .inner . |
Message | message .message . |
Mutex | handle .handle . |
MutexIndex | location .location . |