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.

适用于