OutgoingWebRequestContext.ContentType Property

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

Gets and sets the content type header value from the outgoing Web request.

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

Syntax

'Declaration
Public Property ContentType As String
public string ContentType { get; set; }

Property Value

Type: System.String
The content type header from the outgoing Web request.

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.