FaultConverter.TryCreateFaultMessage(Exception, Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wraps OnTryCreateFaultMessage(Exception, Message) with error checking.
public:
bool TryCreateFaultMessage(Exception ^ exception, [Runtime::InteropServices::Out] System::ServiceModel::Channels::Message ^ % message);
public bool TryCreateFaultMessage (Exception exception, out System.ServiceModel.Channels.Message message);
member this.TryCreateFaultMessage : Exception * Message -> bool
Public Function TryCreateFaultMessage (exception As Exception, ByRef message As Message) As Boolean
Parameters
- exception
- Exception
The SOAP exception.
- message
- Message
The fault message returned as an out
parameter.
Returns
true
if fault message was successfully created; otherwise, false
. The default is false
.
Exceptions
OnTryCreateException(Message, MessageFault, Exception) returned true
but message
is null
.
-or-
OnTryCreateException(Message, MessageFault, Exception) returned false
but message
is not null
.
Remarks
OnTryCreateFaultMessage is an abstract class that you must implement. The current method wraps several error tests around a call to that method.
Applies to
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור