Page.ContentType Propriedade

Definição

Define o tipo HTTP MIME para o HttpResponse objeto 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 de Propriedade

O tipo HTTP MIME associado à página atual.

Atributos

Observações

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

Aplica-se a

Ver também