Page.ContentType Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.