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.

命名空间: Microsoft.IdentityModel.Protocols.WSTrust
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    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)

语法

声明
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

参数

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

返回值

Returns Boolean.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

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

请参见

参考

WSTrustServiceContract 类
WSTrustServiceContract 成员
Microsoft.IdentityModel.Protocols.WSTrust 命名空间