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.
Namespace: Microsoft.IdentityModel.Protocols.WSTrust
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
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)

Syntax

Visual Basic
Protected Overridable Function HandleException ( _
		ex As Exception, _
		trustNamespace As String, _
		action As String, _
		requestEnvelopeVersion As EnvelopeVersion _
) As Boolean
C#
protected virtual bool HandleException (
		Exception ex,
		string trustNamespace,
		string action,
		EnvelopeVersion requestEnvelopeVersion
)
C++
protected:
virtual bool HandleException (
		Exception^ ex, 
		String^ trustNamespace, 
		String^ action, 
		EnvelopeVersion^ requestEnvelopeVersion
)
J#
protected boolean HandleException (
		Exception ex, 
		String trustNamespace, 
		String action, 
		EnvelopeVersion requestEnvelopeVersion
)
JScript
protected function HandleException (
		ex : Exception, 
		trustNamespace : String, 
		action : String, 
		requestEnvelopeVersion : EnvelopeVersion
) : boolean

Parameters

ex

The original exception.

trustNamespace

Trust Namespace of the current trust version.

action

The Trust action that caused the exception.

requestEnvelopeVersion

Return Value

Returns Boolean.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also