Page.ContentType Propriedade

Definição

Define o tipo MIME HTTP para o objeto HttpResponse associado à página.

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

Valor da propriedade

String

O tipo MIME HTTP associado à página atual.

Atributos

Comentários

Na maioria das circunstâncias, não defina essa propriedade no código. Defina o ContentType atributo usando a diretiva @ Page no arquivo .aspx. Quando a página é solicitada, a classe gerada dinamicamente define a propriedade.

Aplica-se a

Confira também