Page.ContentType プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ページに関連付けられている 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 ディレクティブを使用して属性を設定します。 ページが要求されると、動的に生成されたクラスによって プロパティが設定されます。