Compartir vía


HtmlElement.Id Propiedad

Definición

Obtiene o establece una etiqueta por la que se va a identificar el elemento.

public:
 property System::String ^ Id { System::String ^ get(); void set(System::String ^ value); };
public string Id { get; set; }
member this.Id : string with get, set
Public Property Id As String

Valor de propiedad

Identificador único del elemento.

Comentarios

Id debe ser único; no puede tener dos elementos con el mismo Id dentro del mismo documento. Use la Name propiedad para proporcionar el mismo identificador a un grupo de elementos relacionados lógicamente.

Se aplica a

Consulte también