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
namestring- The name of the attribute to write.
valuestring optional- The value of the attribute to write, or
nullto write the attribute without a value.
Exceptions
- ArgumentException
- Thrown when
nameisnullor empty.
