Redigera

Dela via


HtmlElement.Name Property

Definition

Gets or sets the name of the element.

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

Property Value

A String representing the element's name.

Remarks

Use the Name property to retrieve elements from a document using the GetElementsByName method on the All property of HtmlDocument.

When applied to INPUT elements, Name defines the variable name for that element's data when its form is submitted to the server.

Applies to

See also