![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
A Sandcastle Documented Class Library |
HtmlDocument..::..CreateAttribute Method (String) |
HtmlDocument Class See Also Send Feedback |
Creates an HTML attribute with the specified name.
Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
C# |
---|
public HtmlAttribute CreateAttribute( string name ) |
Visual Basic |
---|
Public Function CreateAttribute ( _ name As String _ ) As HtmlAttribute |
Visual C++ |
---|
public: HtmlAttribute^ CreateAttribute( String^ name ) |
Parameters
- name
- Type: System..::..String
The name of the attribute. May not be null.