WrapperName Property
Collapse the table of content
Expand the table of content

MessageContractAttribute.WrapperName Property

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

Gets or sets the name of the wrapper element of the message body.

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

public string WrapperName { get; set; }

Property Value

Type: System.String
The name of the wrapper element in the message body.

ExceptionCondition
ArgumentNullException

The value is null.

ArgumentOutOfRangeException

The value is an empty string.

Use the WrapperName property to set the name of the wrapper element.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft