MessageEncoder.MediaType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets the media type value that is used by the encoder.
public:
abstract property System::String ^ MediaType { System::String ^ get(); };
public abstract string MediaType { get; }
member this.MediaType : string
Public MustOverride ReadOnly Property MediaType As String
Property Value
The media type that is supported by the message encoder.
Examples
The following code shows how to implement the MediaType
property.
public override string MediaType
{
get
{
return factory.MediaType;
}
}
Remarks
The media type is part of the content-type header.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.