Share via

MessageContractAttribute.IsWrapped Property


Gets or sets a value that specifies whether the message body has a wrapper element.

 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

Property Value

true if the message body has a wrapper element; otherwise, false. The default is true.


Set the value of IsWrapped to false to suppress the wrapper element into which the message body is serialized.

Applies to