WebBodyFormatMessageProperty(WebContentFormat) 构造函数

定义

使用指定的格式初始化 WebBodyFormatMessageProperty 类的新实例。Initializes a new instance of the WebBodyFormatMessageProperty class with a specified format.

public:
 WebBodyFormatMessageProperty(System::ServiceModel::Channels::WebContentFormat format);
public WebBodyFormatMessageProperty (System.ServiceModel.Channels.WebContentFormat format);
new System.ServiceModel.Channels.WebBodyFormatMessageProperty : System.ServiceModel.Channels.WebContentFormat -> System.ServiceModel.Channels.WebBodyFormatMessageProperty
Public Sub New (format As WebContentFormat)

参数

format
WebContentFormat

消息正文的 WebContentFormatThe WebContentFormat of the message body.

例外

格式不能设置为构造函数中的 Default 值。The format cannot be set to the Default value in the constructor.

适用于