Page.MetaKeywords Propriedade

Definição

Obtém ou define o conteúdo do elemento meta de “palavras-chave”.Gets or sets the content of the "keywords" meta element.

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

Valor da propriedade

String

O conteúdo do elemento meta de “palavras-chave”.The content of the "keywords" meta element.

Atributos

Exceções

A página não tem um controle de cabeçalho (um elemento head com o atributo runat definido como “servidor”).The page does not have a header control (a head element with the runat attribute set to "server").

Exemplos

Se você definir a MetaKeywords propriedade de uma página como "HTML, CSS, XML, JavaScript", o seguinte elemento aparecerá no HTML renderizado:If you set the MetaKeywords property of a page to "HTML,CSS,XML,JavaScript", the following element will appear in the rendered HTML:

<meta name="keywords" content=" HTML,CSS,XML,JavaScript" />

Comentários

metaElementos HTML podem ser usados para melhorar as listagens do mecanismo de pesquisa.HTML meta elements can be used to improve search-engine listings. O elemento "keywords" meta não é usado nem recebe muito pouco pelos mecanismos de pesquisa principais.The "keywords" meta element is either not used at all or is given very little weight by the major search engines.

Se não houver nenhum elemento "keywords" meta no head elemento da marcação de página, o meta elemento será adicionado à página quando a página for renderizada.If there is no "keywords" meta element in the head element of the page markup, the meta element is added to the page when the page is rendered. Se a marcação de página já tiver um elemento de "palavras-chave" meta , essa propriedade obterá ou definirá o content atributo do meta elemento.If the page markup already has a "keywords" meta element, this property gets or sets the content attribute of the meta element.

Você também pode definir essa propriedade na diretiva @ Page .You can also set this property in the @ Page directive.

Aplica-se a

Confira também