다음을 통해 공유


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 네임스페이스