HtmlWriterWriteAttribute(HtmlAttributeId, Char, Int32, Int32) Method

Write the attribute to the output stream.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteAttribute(
	HtmlAttributeId id,
	char[] buffer,
	int index,
	int count
)

Parameters

id  HtmlAttributeId
The attribute identifier.
buffer  Char
A buffer containing the attribute value.
index  Int32
The starting index of the attribute value.
count  Int32
The number of characters in the attribute value.

Remarks

Writes the attribute to the output stream.

Exceptions

ArgumentException id is not a valid HTML attribute identifier.
ArgumentNullException buffer is .
ArgumentOutOfRangeException

index is less than zero or greater than the length of buffer.

-or-

index and count do not specify a valid range in the buffer.

InvalidOperationException The HtmlWriter is not in a state that allows writing attributes.
ObjectDisposedException The HtmlWriter has been disposed.

See Also