Page.ContentType Proprietà

Definizione

Imposta il tipo MIME HTTP per l'oggetto HttpResponse associato alla pagina.

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

Valore della proprietà

Il tipo MIME HTTP associato alla pagina corrente.

Attributi

Commenti

Nella maggior parte dei casi, non impostare questa proprietà nel codice. Impostare l'attributo usando la ContentType direttiva @ Page nel file aspx. Quando viene richiesta la pagina, la classe generata dinamicamente imposta la proprietà .

Si applica a

Vedi anche