Compartir a través de


WebGetAttribute.BodyStyle Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets and sets the body style of the messages that are sent to and from an operation.

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

Syntax

'Declaration
Public Property BodyStyle As WebMessageBodyStyle
public WebMessageBodyStyle BodyStyle { get; set; }

Property Value

Type: System.ServiceModel.Web.WebMessageBodyStyle
One of the WebMessageBodyStyle enumeration values.

Remarks

When set to Bare, the result of an operation is written directly to the body of the response message.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.