Share via


WSTrustServiceContract.HandleException Metodo

Definizione

Genera l'evento RequestFailed e converte l'eccezione specificata in un'FaultException, se richiesto. Se l'eccezione originale era un oggetto FaultException oppure se il flag PreserveOriginalException è impostato su true, la conversione in un oggetto FaultException non viene eseguita.

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

Parametri

ex
Exception

Eccezione originale.

trustNamespace
String

Spazio dei nomi della versione corrente di WS-Trust.

action
String

Azione WS-Trust che ha causato l'eccezione.

requestEnvelopeVersion
EnvelopeVersion

Versione SOAP della envelope richiesta.

Restituisce

Restituisce Boolean. false se viene generata l'eccezione originale.

Si applica a