WSTrustServiceContract.HandleException Método

Definição

Eleva o RequestFailed evento e converte a exceção especificada em um FaultException , se necessário. Se a exceção original era a FaultException ou se a flag PreserveOriginalException estiver definida para true, a conversão para a FaultException não é realizada.

protected:
 virtual bool HandleException(Exception ^ ex, System::String ^ trustNamespace, System::String ^ action, System::ServiceModel::EnvelopeVersion ^ requestEnvelopeVersion);
protected virtual bool HandleException(Exception ex, string trustNamespace, string action, System.ServiceModel.EnvelopeVersion requestEnvelopeVersion);
abstract member HandleException : Exception * string * string * System.ServiceModel.EnvelopeVersion -> bool
override this.HandleException : Exception * string * string * System.ServiceModel.EnvelopeVersion -> bool
Protected Overridable Function HandleException (ex As Exception, trustNamespace As String, action As String, requestEnvelopeVersion As EnvelopeVersion) As Boolean

Parâmetros

ex
Exception

A exceção original.

trustNamespace
String

O espaço de nomes da versão atual WS-Trust.

action
String

A WS-Trust ação que causou a exceção.

requestEnvelopeVersion
EnvelopeVersion

A versão SOAP do envelope de pedido.

Devoluções

Retorna Boolean. false se a exceção original for lançada.

Aplica-se a