Page.MetaDescription 속성

정의

"설명" meta 요소의 내용을 가져오거나 설정합니다.

public:
 property System::String ^ MetaDescription { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string MetaDescription { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.MetaDescription : string with get, set
Public Property MetaDescription As String

속성 값

String

"설명" meta 요소의 내용입니다.

특성

예외

페이지에는 헤더 컨트롤("서버"로 설정된 head 특성과 runat 요소)이 없습니다.

예제

페이지의 속성을 "ASP.NET Overview"로 설정 MetaDescription 하면 렌더링된 HTML에 다음 요소가 표시됩니다.

<meta name="description" content="ASP.NET Overview" />

설명

HTML meta 요소를 사용하여 검색 엔진 목록을 개선할 수 있습니다. "description" meta 요소는 목록 미리 보기를 개선하기 위해 일부 검색 엔진에서 사용됩니다.

페이지 태그 meta 요소에 head "description" meta 요소가 없으면 페이지가 렌더링될 때 요소가 페이지에 추가됩니다. 페이지 태그에 이미 "description" meta 요소가 있는 경우 이 속성은 요소의 meta 특성을 가져오거나 설정합니다content.

@Page 지시문에서 이 속성을 설정할 수도 있습니다.

적용 대상

추가 정보