Compartilhar via


HtmlWriter.WriteAttribute method

The WriteAttribute method overloads write complete attributes to the output.

Overload list

  Name Description
Public method WriteAttribute(HtmlAttributeReader) The WriteAttribute(HtmlAttributeReader) method writes an HTML attribute to the output stream.
Public method WriteAttribute(String, String) The WriteAttribute method writes an attribute with the specified name and value.
Public method WriteAttribute(HtmlAttributeId, String) The WriteAttribute writes the attribute specified by an HtmlAttributeId enumeration value.
Public method 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.
Public method 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.

See also

Reference

HtmlWriter class

HtmlWriter members

Microsoft.Exchange.Data.TextConverters namespace