WebContentFormat Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the message formats to which content types of incoming messages can be mapped.

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

public enum WebContentFormat

Member nameDescription
Default

The format to map to cannot be determined.

Json

Map to the JSON format.

Raw

Map to the "Raw" binary format.

Xml

Map to the XML format.

A value of WebContentFormat is returned by an instance of WebContentTypeMapper to indicate the format to which the content type of an incoming message is mapped.

.NET Framework
Available since 3.5
Silverlight
Available since 4.0
Return to top
Show: