AbandonedMutexException Construtores
Definição
Inicializa uma nova instância da classe AbandonedMutexException.Initializes a new instance of the AbandonedMutexException class.
Sobrecargas
| AbandonedMutexException() |
Inicializa uma nova instância da classe AbandonedMutexException com valores padrão.Initializes a new instance of the AbandonedMutexException class with default values. |
| AbandonedMutexException(String) |
Inicializa uma nova instância da classe AbandonedMutexException com uma mensagem de erro especificada.Initializes a new instance of the AbandonedMutexException class with a specified error message. |
| AbandonedMutexException(Int32, WaitHandle) |
Inicializa uma nova instância da classe AbandonedMutexException com um índice especificado para o mutex abandonado, se aplicável, e um objeto Mutex que representa o 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) |
Inicializa uma nova instância da classe AbandonedMutexException com dados serializados.Initializes a new instance of the AbandonedMutexException class with serialized data. |
| AbandonedMutexException(String, Exception) |
Inicializa uma nova instância da classe AbandonedMutexException com uma exceção interna e uma mensagem de erro especificadas.Initializes a new instance of the AbandonedMutexException class with a specified error message and inner exception. |
| AbandonedMutexException(String, Int32, WaitHandle) |
Inicializa uma nova instância da classe AbandonedMutexException com uma mensagem de erro, o índice do mutex abandonado, se aplicável, e o mutex abandonado especificados.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) |
Inicializa uma nova instância da classe AbandonedMutexException com uma mensagem de erro, a exceção interna, o índice para o mutex abandonado, se aplicável, e um objeto Mutex que representa o mutex especificados.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()
Inicializa uma nova instância da classe AbandonedMutexException com valores padrão.Initializes a new instance of the AbandonedMutexException class with default values.
public:
AbandonedMutexException();
public AbandonedMutexException ();
Public Sub New ()
Comentários
Esse construtor inicializa a Message propriedade da nova instância para uma mensagem fornecida pelo sistema que descreve o erro, como "a espera concluída devido a um mutex abandonado".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." Essa mensagem considera a cultura do sistema atual.This message takes into account the current system culture.
A tabela a seguir mostra os valores de propriedade inicial de uma instância de AbandonedMutexException.The following table shows the initial property values for an instance of AbandonedMutexException.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | A cadeia de caracteres de mensagem de erro fornecida pelo sistema.The system-supplied error message string. |
| Mutex | null.null. |
| MutexIndex | -1 (menos um).-1 (minus one). |
Confira também
Aplica-se a
AbandonedMutexException(String)
Inicializa uma nova instância da classe AbandonedMutexException com uma mensagem de erro especificada.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)
Parâmetros
- message
- String
Uma mensagem de erro que explica a razão da exceção.An error message that explains the reason for the exception.
Comentários
O conteúdo de message deve ser compreendido por humanos.The content of message is intended to be understood by humans. O chamador deste construtor é obrigatório para garantir que esta cadeia de caracteres foi localizada para a cultura do sistema atual.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
A tabela a seguir mostra os valores de propriedade iniciais para uma instância do AbandonedMutexException inicializado com esse construtor.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | message.message. |
| Mutex | null.null. |
| MutexIndex | -1 (menos um).-1 (minus one). |
Confira também
Aplica-se a
AbandonedMutexException(Int32, WaitHandle)
Inicializa uma nova instância da classe AbandonedMutexException com um índice especificado para o mutex abandonado, se aplicável, e um objeto Mutex que representa o 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)
Parâmetros
- location
- Int32
O índice do mutex abandonado na matriz de identificadores de espera, se a exceção é gerada para o método WaitAny, ou -1, se a exceção é gerada para os métodos WaitOne ou 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
Um objeto Mutex que representa o mutex abandonado.A Mutex object that represents the abandoned mutex.
Comentários
Esse construtor inicializa a Message propriedade da nova instância para uma mensagem fornecida pelo sistema que descreve o erro, como "a espera concluída devido a um mutex abandonado".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." Essa mensagem considera a cultura do sistema atual.This message takes into account the current system culture.
A tabela a seguir mostra os valores de propriedade iniciais para uma instância do AbandonedMutexException inicializado com esse construtor.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | Uma cadeia de caracteres de mensagem de erro fornecida pelo sistema.A system-supplied error message string. |
| Mutex | handle.handle. |
| MutexIndex | location.location. |
Confira também
Aplica-se a
AbandonedMutexException(SerializationInfo, StreamingContext)
Inicializa uma nova instância da classe AbandonedMutexException com dados serializados.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)
Parâmetros
- info
- SerializationInfo
O objeto SerializationInfo que mantém os dados de objeto serializados sobre a exceção que está sendo lançada.The SerializationInfo object that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
O objeto StreamingContext que contém as informações contextuais sobre a origem ou o destino.The StreamingContext object that contains contextual information about the source or destination.
Comentários
O construtor é chamado durante a desserialização para reconstituir o objeto de exceção transmitido em um fluxo.This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. Para obter mais informações, consulte serialização XML e SOAP.For more information, see XML and SOAP Serialization.
Confira também
Aplica-se a
AbandonedMutexException(String, Exception)
Inicializa uma nova instância da classe AbandonedMutexException com uma exceção interna e uma mensagem de erro especificadas.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)
Parâmetros
- message
- String
Uma mensagem de erro que explica a razão da exceção.An error message that explains the reason for the exception.
- inner
- Exception
A exceção que é a causa da exceção atual.The exception that is the cause of the current exception. Caso o parâmetro inner não seja null, a exceção atual é acionada em um bloco catch que identifica a exceção interna.If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.
Comentários
O conteúdo de message deve ser compreendido por humanos.The content of message is intended to be understood by humans. O chamador deste construtor é obrigatório para garantir que esta cadeia de caracteres foi localizada para a cultura do sistema atual.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
Uma exceção que é lançada como um resultado direto de uma exceção anterior deve incluir uma referência para a exceção anterior na propriedade 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. A propriedade InnerException retorna o mesmo valor passado ao construtor, ou null se a propriedade InnerException não fornecer o valor da exceção interna ao construtor.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.
A tabela a seguir mostra os valores de propriedade iniciais para uma instância do AbandonedMutexException inicializado com esse construtor.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | inner.inner. |
| Message | message.message. |
| Mutex | null.null. |
| MutexIndex | -1 (menos um).-1 (minus one). |
Confira também
Aplica-se a
AbandonedMutexException(String, Int32, WaitHandle)
Inicializa uma nova instância da classe AbandonedMutexException com uma mensagem de erro, o índice do mutex abandonado, se aplicável, e o mutex abandonado especificados.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)
Parâmetros
- message
- String
Uma mensagem de erro que explica a razão da exceção.An error message that explains the reason for the exception.
- location
- Int32
O índice do mutex abandonado na matriz de identificadores de espera, se a exceção é gerada para o método WaitAny, ou -1, se a exceção é gerada para os métodos WaitOne ou 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
Um objeto Mutex que representa o mutex abandonado.A Mutex object that represents the abandoned mutex.
Comentários
O conteúdo de message deve ser compreendido por humanos.The content of message is intended to be understood by humans. O chamador deste construtor é obrigatório para garantir que esta cadeia de caracteres foi localizada para a cultura do sistema atual.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
A tabela a seguir mostra os valores de propriedade iniciais para uma instância do AbandonedMutexException inicializado com esse construtor.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | message.message. |
| Mutex | handle.handle. |
| MutexIndex | location.location. |
Confira também
Aplica-se a
AbandonedMutexException(String, Exception, Int32, WaitHandle)
Inicializa uma nova instância da classe AbandonedMutexException com uma mensagem de erro, a exceção interna, o índice para o mutex abandonado, se aplicável, e um objeto Mutex que representa o mutex especificados.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)
Parâmetros
- message
- String
Uma mensagem de erro que explica a razão da exceção.An error message that explains the reason for the exception.
- inner
- Exception
A exceção que é a causa da exceção atual.The exception that is the cause of the current exception. Caso o parâmetro inner não seja null, a exceção atual é acionada em um bloco catch que identifica a exceção interna.If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.
- location
- Int32
O índice do mutex abandonado na matriz de identificadores de espera, se a exceção é gerada para o método WaitAny, ou -1, se a exceção é gerada para os métodos WaitOne ou 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
Um objeto Mutex que representa o mutex abandonado.A Mutex object that represents the abandoned mutex.
Comentários
O conteúdo de message é uma cadeia de caracteres de texto destinada a informar o usuário sobre a exceção.The content of message is a text string intended to inform the user about the exception. O chamador deste construtor é obrigatório para garantir que esta cadeia de caracteres foi localizada para a cultura do sistema atual.The caller of this constructor is required to ensure that this string has been localized for the current system culture.
Uma exceção que é lançada como um resultado direto de uma exceção anterior deve incluir uma referência para a exceção anterior na propriedade 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. A propriedade InnerException retorna o mesmo valor passado ao construtor, ou null se a propriedade InnerException não fornecer o valor da exceção interna ao construtor.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.
A tabela a seguir mostra os valores de propriedade iniciais para uma instância do AbandonedMutexException inicializado com esse construtor.The following table shows the initial property values for an instance of AbandonedMutexException initialized with this constructor.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | inner.inner. |
| Message | message.message. |
| Mutex | handle.handle. |
| MutexIndex | location.location. |