Share via


WSTrustServiceContract.HandleException Methode

Definition

Löst das RequestFailed-Ereignis aus und konvertiert die angegebene Ausnahme bei Bedarf in ein FaultException. Wenn die ursprüngliche Ausnahme ein FaultException war oder das „PreserveOriginalException“-Flag auf true festgelegt ist, wird die Konvertierung in FaultException nicht ausgeführt.

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

Parameter

ex
Exception

Die ursprüngliche Ausnahme.

trustNamespace
String

Der Namespace der aktuellen WS-Trust-Version.

action
String

Die WS-Trust-Aktion, die die Ausnahme verursacht hat.

requestEnvelopeVersion
EnvelopeVersion

Die SOAP-Version des Anforderungsumschlags.

Gibt zurück

Gibt Booleanzurück. false, wenn die ursprüngliche Ausnahme ausgelöst wird.

Gilt für: