Page.ContentType 속성

정의

페이지와 관련된 HttpResponse 개체에 대한 HTTP MIME 형식을 설정합니다.

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

속성 값

String

현재 페이지와 관련된 HTTP MIME 형식입니다.

특성

설명

대부분의 경우 코드에서 이 속성을 설정하지 마세요. ContentType.aspx 파일에서 @ Page 지시문을 사용하여 특성을 설정합니다. 페이지가 요청되면 동적으로 생성된 클래스가 속성을 설정합니다.

적용 대상

추가 정보