Page.ContentType プロパティ

定義

ページに関連付けられている HttpResponse オブジェクトの HTTP MIME 型を設定します。

protected:
 property System::String ^ ContentType {  void set(System::String ^ value); };
public:
 property System::String ^ ContentType { System::String ^ get(); void set(System::String ^ value); };
protected string ContentType { set; }
[System.ComponentModel.Browsable(false)]
public string ContentType { get; set; }
member this.ContentType : string
[<System.ComponentModel.Browsable(false)>]
member this.ContentType : string with get, set
Protected Property ContentType As String
Public Property ContentType As String

プロパティ値

現在のページに関連付けられている HTTP MIME 型。

属性

注釈

ほとんどの状況では、コードでこのプロパティを設定しないでください。 ContentType.aspx ファイルの @ Page ディレクティブを使用して属性を設定します。 ページが要求されると、動的に生成されたクラスによって プロパティが設定されます。

適用対象

こちらもご覧ください