HtmlWriter.WriteAttribute Method

Namespace
Kampute.DocToolkit.IO.Writers
Assembly
  • Kampute.DocToolkit.dll

Definition

Writes a tag attribute with an optional value.
protected virtual void WriteAttribute(string name, string value = null)

Parameters

name string
The name of the attribute to write.
value string optional
The value of the attribute to write, or null to write the attribute without a value.

Exceptions

ArgumentException
Thrown when name is null or empty.