HtmlWriter.WriteAttribute method
The WriteAttribute method overloads write complete attributes to the output.
Overload list
Name | Description | |
---|---|---|
WriteAttribute(HtmlAttributeReader) | The WriteAttribute(HtmlAttributeReader) method writes an HTML attribute to the output stream. | |
WriteAttribute(String, String) | The WriteAttribute method writes an attribute with the specified name and value. | |
WriteAttribute(HtmlAttributeId, String) | The WriteAttribute writes the attribute specified by an HtmlAttributeId enumeration value. | |
WriteAttribute(String, [], Int32, Int32) | The WriteAttribute method reads an attribute value from a buffer and writes it to the output with a name specified by the name parameter. | |
WriteAttribute(HtmlAttributeId, [], Int32, Int32) | The WriteAttribute method reads an attribute value from a buffer and writes it to the output with the name specified by the id parameter. |
Top
Remarks
The WriteAttribute method overloads can only be called when a start tag is open. This is true, for example, immediately after a call to one of the WriteStartTag method overloads.