WSTrustServiceContract.HandleException Methode

Definition

Löst das RequestFailed Ereignis aus und konvertiert die angegebene Ausnahme bei Bedarf in eine FaultException . Wenn es sich bei der ursprünglichen Ausnahme um FaultExceptioneine true oder wenn das PreserveOriginalException-Flag festgelegt ist, wird die Konvertierung in eine 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 Boolean zurück. false wenn die ursprüngliche Ausnahme ausgelöst wird.

Gilt für: