HttpMediaTypeHeaderValue.MediaType 屬性

定義

取得或設定Content-Type HTTP 標頭中使用的實體主體媒體類型

public:
 property Platform::String ^ MediaType { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring MediaType();

void MediaType(winrt::hstring value);
public string MediaType { get; set; }
var string = httpMediaTypeHeaderValue.mediaType;
httpMediaTypeHeaderValue.mediaType = string;
Public Property MediaType As String

屬性值

String

Platform::String

winrt::hstring

實體主體的 媒體類型

備註

網際網路媒體類型應該向 IANA 註冊。 媒體類型註冊會依 IANA 列為 MIME 媒體類型類別。

適用於