MessageEncoder::MediaType Property
.NET Framework (current version)
When overridden in a derived class, gets the media type value that is used by the encoder.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The media type is part of the content-type header.
The following code shows how to implement the MediaType property.
public override string MediaType { get { return factory.MediaType; } }
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: