Compartir a través de


WSTrustServiceContract.HandleException (Método)

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.

Espacio de nombres: Microsoft.IdentityModel.Protocols.WSTrust
Ensamblado: Microsoft.IdentityModel (en microsoft.identitymodel.dll)

Uso

    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)

Sintaxis

'Declaración
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

Parámetros

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

Valor devuelto

Returns Boolean.

Seguridad para subprocesos

Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para subprocesos.No se garantiza que los miembros de instancias sean seguros para subprocesos.

Plataformas

Plataformas de desarrollo

Windows Server 2003, Windows Vista

Target Platforms

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

Vea también

Referencia

WSTrustServiceContract (Clase)
WSTrustServiceContract (Miembros)
Microsoft.IdentityModel.Protocols.WSTrust (Espacio de nombres)