Page.ContentType Özellik

Tanım

Sayfayla ilişkili nesne için HttpResponse HTTP MIME türünü ayarlar.

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

Özellik Değeri

String

Geçerli sayfayla ilişkili HTTP MIME türü.

Öznitelikler

Açıklamalar

Çoğu durumda bu özelliği kodda ayarlamayın. ContentType.aspx dosyasındaki @ Page yönergesini kullanarak özniteliğini ayarlayın. Sayfa istendiğinde, dinamik olarak oluşturulan sınıf özelliğini ayarlar.

Şunlara uygulanır

Ayrıca bkz.