HttpResponseBase.ContentType 屬性

定義

取得或設定目前回應的 HTTP MIME 類型。Gets or sets the HTTP MIME type of the current response.

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

屬性值

String

目前回應的 HTTP MIME 類型。The HTTP MIME type of the current response.

例外狀況

永遠。Always.

適用於