CreateFault Method
Collapse the table of content
Expand the table of content

MessageFault.CreateFault Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft