Bagikan melalui


Page.ContentType Properti

Definisi

Mengatur jenis HTTP MIME untuk objek yang HttpResponse terkait dengan halaman.

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

Nilai Properti

Jenis HTTP MIME yang terkait dengan halaman saat ini.

Atribut

Keterangan

Dalam kebanyakan keadaan, jangan atur properti ini dalam kode. Atur ContentType atribut menggunakan arahan @ Halaman dalam file .aspx. Saat halaman diminta, kelas yang dihasilkan secara dinamis mengatur properti .

Berlaku untuk

Lihat juga