TrustNotGrantedException Construtores
Definição
Inicializa uma nova instância da classe TrustNotGrantedException.Initializes a new instance of the TrustNotGrantedException class.
Sobrecargas
| TrustNotGrantedException() |
Inicializa uma nova instância da classe TrustNotGrantedException com uma mensagem fornecida pelo sistema que descreve o erro.Initializes a new instance of the TrustNotGrantedException class with a system-supplied message that describes the error. |
| TrustNotGrantedException(String) |
Inicializa uma nova instância da classe TrustNotGrantedException com uma mensagem especificada que descreve o erro.Initializes a new instance of the TrustNotGrantedException class with a specified message that describes the error. |
| TrustNotGrantedException(SerializationInfo, StreamingContext) |
Inicializa uma nova instância da classe TrustNotGrantedException com dados serializados.Initializes a new instance of the TrustNotGrantedException class with serialized data. |
| TrustNotGrantedException(String, Exception) |
Inicializa uma nova instância da classe TrustNotGrantedException 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 TrustNotGrantedException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
TrustNotGrantedException()
Inicializa uma nova instância da classe TrustNotGrantedException com uma mensagem fornecida pelo sistema que descreve o erro.Initializes a new instance of the TrustNotGrantedException class with a system-supplied message that describes the error.
public:
TrustNotGrantedException();
public TrustNotGrantedException ();
Public Sub New ()
Comentários
Este construtor inicializa a propriedade Message da nova instância para uma mensagem fornecida pelo sistema que descreve o erro, como "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply". Essa mensagem leva em conta a cultura do sistema atual.This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply" 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
TrustNotGrantedException(String)
Inicializa uma nova instância da classe TrustNotGrantedException com uma mensagem especificada que descreve o erro.Initializes a new instance of the TrustNotGrantedException class with a specified message that describes the error.
public:
TrustNotGrantedException(System::String ^ message);
public TrustNotGrantedException (string message);
new System.Deployment.Application.TrustNotGrantedException : string -> System.Deployment.Application.TrustNotGrantedException
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 TrustNotGrantedException.The following table shows the initial property values for an instance of TrustNotGrantedException.
| 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
TrustNotGrantedException(SerializationInfo, StreamingContext)
Inicializa uma nova instância da classe TrustNotGrantedException com dados serializados.Initializes a new instance of the TrustNotGrantedException class with serialized data.
protected:
TrustNotGrantedException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected TrustNotGrantedException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Deployment.Application.TrustNotGrantedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Deployment.Application.TrustNotGrantedException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parâmetros
- serializationInfo
- SerializationInfo
O objeto que mantém os dados de objeto serializados.The object that holds the serialized object data.
- streamingContext
- StreamingContext
As informações contextuais sobre a origem ou o destino.The contextual information about the source or destination.
Aplica-se a
TrustNotGrantedException(String, Exception)
Inicializa uma nova instância da classe TrustNotGrantedException 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 TrustNotGrantedException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
TrustNotGrantedException(System::String ^ message, Exception ^ innerException);
public TrustNotGrantedException (string message, Exception innerException);
new System.Deployment.Application.TrustNotGrantedException : string * Exception -> System.Deployment.Application.TrustNotGrantedException
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.