Partager via


Méthode WSTrustServiceContract.HandleException

Raises the Error Event and converts the given exception to a FaultException if required. If the original exception was a FaultException or PreserveOriginalException flag is set to true then the conversion to FaultException is not done.

Espace de noms: Microsoft.IdentityModel.Protocols.WSTrust
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim ex As Exception
Dim trustNamespace As String
Dim action As String
Dim requestEnvelopeVersion As EnvelopeVersion
Dim returnValue As Boolean

returnValue = Me.HandleException(ex, trustNamespace, action, requestEnvelopeVersion)

Syntaxe

'Déclaration
Protected Overridable Function HandleException ( _
    ex As Exception, _
    trustNamespace As String, _
    action As String, _
    requestEnvelopeVersion As EnvelopeVersion _
) As Boolean
protected virtual bool HandleException (
    Exception ex,
    string trustNamespace,
    string action,
    EnvelopeVersion requestEnvelopeVersion
)
protected:
virtual bool HandleException (
    Exception^ ex, 
    String^ trustNamespace, 
    String^ action, 
    EnvelopeVersion^ requestEnvelopeVersion
)
protected boolean HandleException (
    Exception ex, 
    String trustNamespace, 
    String action, 
    EnvelopeVersion requestEnvelopeVersion
)
protected function HandleException (
    ex : Exception, 
    trustNamespace : String, 
    action : String, 
    requestEnvelopeVersion : EnvelopeVersion
) : boolean

Paramètres

  • ex
    The original exception.
  • trustNamespace
    Trust Namespace of the current trust version.
  • action
    The Trust action that caused the exception.
  • requestEnvelopeVersion
     

Valeur de retour

Returns Boolean.

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Voir aussi

Référence

Classe WSTrustServiceContract
Membres WSTrustServiceContract
Espace de noms Microsoft.IdentityModel.Protocols.WSTrust