WebInvokeAttribute.BodyStyle Property

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)

public WebMessageBodyStyle BodyStyle { get; set; }

Property Value

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

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

NoteNote:

Operations that take a Message and return void are handled specially by the formatters. The formatters do not emit the wrapper name in the response even if BodyStyle is set to Wrapped.

Silverlight

Supported in: 5, 4

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

Community Additions

ADD
Show: