Aracılığıyla paylaş


WSTrustServiceContract.HandleException Yöntem

Tanım

RequestFailed olayı oluşturur ve belirtilen özel durumu gerekirse değerine FaultException dönüştürür. Özgün özel durum bir FaultException ise veya PreserveOriginalException bayrağı olarak trueayarlanmışsa, öğesine FaultException dönüştürme gerçekleştirilmemektedir.

protected:
 virtual bool HandleException(Exception ^ ex, System::String ^ trustNamespace, System::String ^ action, System::ServiceModel::EnvelopeVersion ^ requestEnvelopeVersion);
protected virtual bool HandleException (Exception ex, string trustNamespace, string action, System.ServiceModel.EnvelopeVersion requestEnvelopeVersion);
abstract member HandleException : Exception * string * string * System.ServiceModel.EnvelopeVersion -> bool
override this.HandleException : Exception * string * string * System.ServiceModel.EnvelopeVersion -> bool
Protected Overridable Function HandleException (ex As Exception, trustNamespace As String, action As String, requestEnvelopeVersion As EnvelopeVersion) As Boolean

Parametreler

ex
Exception

Özgün özel durum.

trustNamespace
String

Geçerli WS-Trust sürümünün ad alanı.

action
String

Özel duruma neden olan WS-Trust eylemi.

requestEnvelopeVersion
EnvelopeVersion

İstek zarfının SOAP sürümü.

Döndürülenler

Boolean döndürür. false özgün özel durum oluşturulduysa.

Şunlara uygulanır