WebBodyFormatMessageProperty Constructor
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public Sub New ( _
format As WebContentFormat _
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The format cannot be set to the Default value in the constructor. |
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.