語言

WebBodyFormatMessageProperty(WebContentFormat) 建構函式

定義

以指定格式初始化類別的新實例 WebBodyFormatMessageProperty 。

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

訊息主體的部分 WebContentFormat 。

例外狀況

格式無法設定為 Default 建構子中的值。

適用於