HttpResponseWrapper.ContentType 屬性

定義

取得或設定目前回應的 HTTP MIME 類型。

public:
 virtual property System::String ^ ContentType { System::String ^ get(); void set(System::String ^ value); };
public override string ContentType { get; set; }
member this.ContentType : string with get, set
Public Overrides Property ContentType As String

屬性值

目前回應的 HTTP MIME 類型。 預設值為 "text/html"。

例外狀況

ContentType 屬性會設定為 null

適用於