ChannelTerminatedException Construtores
Definição
Inicializa uma nova instância da classe ChannelTerminatedException.Initializes a new instance of the ChannelTerminatedException class.
Sobrecargas
| ChannelTerminatedException() |
Inicializa uma nova instância da classe ChannelTerminatedException.Initializes a new instance of the ChannelTerminatedException class. |
| ChannelTerminatedException(String) |
Inicializa uma nova instância da classe ChannelTerminatedException com uma mensagem de erro especificada.Initializes a new instance of the ChannelTerminatedException class with a specified error message. |
| ChannelTerminatedException(SerializationInfo, StreamingContext) |
Inicializa uma nova instância da classe ChannelTerminatedException com as informações de serialização e o contexto de fluxo especificados.Initializes a new instance of the ChannelTerminatedException class with serialization information and streaming context specified. |
| ChannelTerminatedException(String, Exception) |
Inicializa uma nova instância da classe ChannelTerminatedException 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 ChannelTerminatedException class with a specified error message and a reference to the inner exception that is the cause of the exception. |
Comentários
Se você quiser passar uma mensagem de erro para o usuário, use o ChannelTerminatedException(String) Construtor.If you want to pass an error message to the user, use the ChannelTerminatedException(String) constructor.
Se você quiser passar uma mensagem de erro e uma referência à exceção interna que é a causa da exceção para o usuário, use o ChannelTerminatedException(String, Exception) Construtor.If you want to pass an error message and a reference to the inner exception that is the cause of the exception to the user, use the ChannelTerminatedException(String, Exception) constructor.
Se você quiser passar informações de serialização e o contexto de streaming, use o ChannelTerminatedException(SerializationInfo, StreamingContext) Construtor.If you want to pass serialization information and streaming context, use the ChannelTerminatedException(SerializationInfo, StreamingContext) constructor.
ChannelTerminatedException()
Inicializa uma nova instância da classe ChannelTerminatedException.Initializes a new instance of the ChannelTerminatedException class.
public:
ChannelTerminatedException();
public ChannelTerminatedException ();
Public Sub New ()
Aplica-se a
ChannelTerminatedException(String)
Inicializa uma nova instância da classe ChannelTerminatedException com uma mensagem de erro especificada.Initializes a new instance of the ChannelTerminatedException class with a specified error message.
public:
ChannelTerminatedException(System::String ^ message);
public ChannelTerminatedException (string message);
new System.ServiceModel.ChannelTerminatedException : string -> System.ServiceModel.ChannelTerminatedException
Public Sub New (message As String)
Parâmetros
- message
- String
A mensagem de erro que explica a razão da exceção.The error message that explains the reason for the exception.
Comentários
Use esse construtor quando desejar passar uma mensagem de erro para o usuário.Use this constructor when you want to pass an error message to the user. O conteúdo do parâmetro de mensagem deve ser compreensível para os usuários pretendidos.The content of the message parameter should be understandable to the intended users.
Aplica-se a
ChannelTerminatedException(SerializationInfo, StreamingContext)
Inicializa uma nova instância da classe ChannelTerminatedException com as informações de serialização e o contexto de fluxo especificados.Initializes a new instance of the ChannelTerminatedException class with serialization information and streaming context specified.
protected:
ChannelTerminatedException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ChannelTerminatedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.ChannelTerminatedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.ChannelTerminatedException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parâmetros
- info
- SerializationInfo
O SerializationInfo que contém todos os dados necessários para serializar a exceção.The SerializationInfo that contains all the data required to serialize the exception.
- context
- StreamingContext
O StreamingContext que especifica a origem e o destino do fluxo.The StreamingContext that specifies the source and destination of the stream.
Comentários
Esse construtor é chamado durante a desserialização para reconstruir o objeto de exceção transmitido por um fluxo.This constructor is called during deserialization to reconstruct the exception object transmitted over a stream.
Aplica-se a
ChannelTerminatedException(String, Exception)
Inicializa uma nova instância da classe ChannelTerminatedException 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 ChannelTerminatedException class with a specified error message and a reference to the inner exception that is the cause of the exception.
public:
ChannelTerminatedException(System::String ^ message, Exception ^ innerException);
public ChannelTerminatedException (string message, Exception innerException);
new System.ServiceModel.ChannelTerminatedException : string * Exception -> System.ServiceModel.ChannelTerminatedException
Public Sub New (message As String, innerException As Exception)
Parâmetros
- message
- String
A mensagem de erro que explica a razão da exceção.The error message that explains the reason for the exception.
- innerException
- Exception
O Exception que fez a exceção atual ser gerada.The Exception that caused the current exception to be thrown.
Comentários
Use esse construtor quando desejar passar uma mensagem de erro e informações sobre uma exceção interna até o usuário.Use this constructor when you want to pass an error message and information about an inner exception up to the user. O conteúdo do parâmetro de mensagem deve ser compreensível para os usuários pretendidos.The content of the message parameter should be understandable to the intended users.
Uma exceção que é lançada como um resultado direto de uma exceção anterior pode 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 can include a reference to the previous exception in the InnerException property. A InnerException propriedade retorna o mesmo valor que é passado para o construtor, ou uma null referência ( Nothing em Visual Basic) se a InnerException propriedade não fornecer o valor de exceção interna ao construtor.The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.