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)
Использование
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) |
Синтаксис
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 |
Параметры
- ex
-
The original exception.
- trustNamespace
-
Trust Namespace of the current trust version.
- action
-
The Trust action that caused the exception.
- requestEnvelopeVersion
Возвращаемое значение
Returns Boolean.Безопасность потоков
Любые открытые статические члены
(Shared в Visual Basic) этого типа являются
поточно-ориентированными.Любые члены экземпляров не являются
гарантированно поточно-ориентированными.