The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
MessageFault::CreateFault Method (FaultCode^, String^)
.NET Framework (current version)
Returns a new MessageFault object that uses the specified FaultCode and fault reason.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- code
-
Type:
System.ServiceModel::FaultCode^
The fault code for the fault message.
- reason
-
Type:
System::String^
The reason for the fault.
Return Value
Type: System.ServiceModel.Channels::MessageFault^A MessageFault object with initial values from the passed in parameters.
.NET Framework
Available since 3.0
Available since 3.0
Show: