InsufficientMemoryException Construtores
Definição
Inicializa uma nova instância da classe InsufficientMemoryException.Initializes a new instance of the InsufficientMemoryException class.
Sobrecargas
| InsufficientMemoryException() |
Inicializa uma nova instância da classe InsufficientMemoryException com uma mensagem fornecida pelo sistema que descreve o erro.Initializes a new instance of the InsufficientMemoryException class with a system-supplied message that describes the error. |
| InsufficientMemoryException(String) |
Inicializa uma nova instância da classe InsufficientMemoryException com uma mensagem especificada que descreve o erro.Initializes a new instance of the InsufficientMemoryException class with a specified message that describes the error. |
| InsufficientMemoryException(String, Exception) |
Inicializa uma nova instância da classe InsufficientMemoryException com uma mensagem de erro especificada e uma referência à exceção interna que é a causa da exceção.Initializes a new instance of the InsufficientMemoryException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
InsufficientMemoryException()
Inicializa uma nova instância da classe InsufficientMemoryException com uma mensagem fornecida pelo sistema que descreve o erro.Initializes a new instance of the InsufficientMemoryException class with a system-supplied message that describes the error.
public:
InsufficientMemoryException();
public InsufficientMemoryException ();
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 "memória disponível insuficiente para atender às demandas esperadas de uma operação no momento.This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Insufficient available memory to meet the expected demands of an operation at this time. Tente novamente mais tarde.”Please try again later." 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 InsufficientMemoryException.The following table shows the initial property values for an instance of InsufficientMemoryException.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | A cadeia de caracteres da mensagem de erro localizada.The localized error message string. |
Aplica-se a
InsufficientMemoryException(String)
Inicializa uma nova instância da classe InsufficientMemoryException com uma mensagem especificada que descreve o erro.Initializes a new instance of the InsufficientMemoryException class with a specified message that describes the error.
public:
InsufficientMemoryException(System::String ^ message);
public InsufficientMemoryException (string? message);
public InsufficientMemoryException (string message);
new InsufficientMemoryException : string -> InsufficientMemoryException
Public Sub New (message As String)
Parâmetros
- message
- String
A mensagem que descreve a exceção.The message that describes 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.
Comentários
A tabela a seguir mostra os valores de propriedade inicial de uma instância de InsufficientMemoryException.The following table shows the initial property values for an instance of InsufficientMemoryException.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | A cadeia da mensagem de erro especificada na message.The error message string specified in message. |
Aplica-se a
InsufficientMemoryException(String, Exception)
Inicializa uma nova instância da classe InsufficientMemoryException com uma mensagem de erro especificada e uma referência à exceção interna que é a causa da exceção.Initializes a new instance of the InsufficientMemoryException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
InsufficientMemoryException(System::String ^ message, Exception ^ innerException);
public InsufficientMemoryException (string? message, Exception? innerException);
public InsufficientMemoryException (string message, Exception innerException);
new InsufficientMemoryException : string * Exception -> InsufficientMemoryException
Public Sub New (message As String, innerException As Exception)
Parâmetros
- message
- String
A mensagem que descreve a exceção.The message that describes 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.
- innerException
- 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 innerException não seja null, a exceção atual é acionada em um bloco catch que identifica a exceção interna.If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.
Comentários
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 inicial de uma instância de InsufficientMemoryException.The following table shows the initial property values for an instance of InsufficientMemoryException.
| PropriedadeProperty | ValorValue |
|---|---|
| InnerException | null.null. |
| Message | A cadeia da mensagem de erro especificada na message.The error message string specified in message. |