IsWrapped Property
Collapse the table of content
Expand the table of content

MessageContractAttribute.IsWrapped Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public bool IsWrapped { get; set; }

Property Value

Type: System.Boolean
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft