WebHttpBehavior.DefaultBodyStyle Property

Gets and sets the default message body style.

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

public virtual WebMessageBodyStyle DefaultBodyStyle { get; set; }

Property Value

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

If the WebGetAttribute or WebInvokeAttribute does not explicitly set the WebMessageBodyStyle property, the value this property sets is used as the body style for the operation. The default value of this default-setting property is Bare.


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