MessageContractAttribute.IsWrapped 屬性

定義

取得或設定值,這個值會指定訊息本文是否有包裝函式項目。Gets or sets a value that specifies whether the message body has a wrapper element.

public:
 property bool IsWrapped { bool get(); void set(bool value); };
public bool IsWrapped { get; set; }
member this.IsWrapped : bool with get, set
Public Property IsWrapped As Boolean

屬性值

Boolean

如果訊息本文有包裝函式項目,則為 true,否則為 falsetrue if the message body has a wrapper element; otherwise, false. 預設為 trueThe default is true.

備註

您可以將 IsWrapped 的值設定為 false,隱藏訊息本文經過序列化之後成為的包裝函式項目。Set the value of IsWrapped to false to suppress the wrapper element into which the message body is serialized.

適用於