Page.ContentType Vlastnost

Definice

Nastaví typ MIME HTTP pro HttpResponse objekt přidružený ke stránce.

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

Hodnota vlastnosti

Typ MIME HTTP přidružený k aktuální stránce.

Atributy

Poznámky

Ve většině případů nenastavujte tuto vlastnost v kódu. ContentType Nastavte atribut pomocí direktivy @ Page v souboru .aspx. Při vyžádání stránky dynamicky generovaná třída nastaví vlastnost.

Platí pro

Viz také