WSTrustServiceContract.HandleException Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Genera l'evento RequestFailed e converte l'eccezione specificata in un oggetto FaultException , se necessario. Se l'eccezione originale è o FaultException se il flag PreserveOriginalException è impostato su true, la conversione in un FaultException oggetto 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 del WS-Trust.
- action
- String
Azione WS-Trust che ha causato l'eccezione.
- requestEnvelopeVersion
- EnvelopeVersion
Versione SOAP della busta di richiesta.
Valori restituiti
Restituisce Boolean.
false se viene generata l'eccezione originale.