Share via


HtmlWriter.WriteAttribute Method

The WriteAttribute method overloads write complete attributes to the output.

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.

Overload List

Name Description
HtmlWriter.WriteAttribute (HtmlAttributeId, String)
The WriteAttribute writes the attribute specified by an HtmlAttributeId enumeration value.
HtmlWriter.WriteAttribute (String, String)
The WriteAttribute method writes an attribute with the specified name and value.
HtmlWriter.WriteAttribute (HtmlAttributeId, Char[], 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.
HtmlWriter.WriteAttribute (String, Char[], 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.