Export (0) Print
Expand All

WebBodyFormatMessageProperty Constructor

Initializes a new instance of the WebBodyFormatMessageProperty class with a specified format.

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

public WebBodyFormatMessageProperty(
	WebContentFormat format
)

Parameters

format
Type: System.ServiceModel.Channels.WebContentFormat
The WebContentFormat that specifies the content type to which an incoming message body is mapped.

ExceptionCondition
ArgumentException

The format cannot be set to the Default value in the constructor.

A known format type must be used in the constructor. The Default format cannot be used as it indicates that the format to which the message body is to be mapped is not known.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft