MessageFault::CreateFault Method (Message^, Int32)

 

Returns a new MessageFault object that uses the specified Message and the specified maximum buffer size for the message buffer.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
static MessageFault^ CreateFault(
	Message^ message,
	int maxBufferSize
)

Parameters

message
Type: System.ServiceModel.Channels::Message^

The specified Message to be used to create the MessageFault object.

maxBufferSize
Type: System::Int32

The specified maximum buffer size for the message buffer

Return Value

Type: System.ServiceModel.Channels::MessageFault^

A MessageFault object with initial values from the passed in parameters.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: