Langue

WSTrustServiceContract.HandleException Méthode

Définition

Déclenche l’événement RequestFailed et convertit l’exception spécifiée en une FaultException exception si nécessaire. Si l’exception d’origine était une FaultException exception ou si l’indicateur PreserveOriginalException est défini truesur , la conversion en un FaultException n’est pas effectuée.

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

Paramètres

ex
Exception

Exception d’origine.

trustNamespace
String

Espace de noms de la version WS-Trust actuelle.

action
String

Action WS-Trust qui a provoqué l’exception.

requestEnvelopeVersion
EnvelopeVersion

Version SOAP de l’enveloppe de requête.

Retours

Retourne Boolean. false si l’exception d’origine est levée.

S’applique à