Click or drag to resize
MimeKit

HtmlWriterWriteAttribute(String, Char, Int32, Int32) Method

Write the attribute to the output stream.

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public void WriteAttribute(
	string name,
	char[] buffer,
	int index,
	int count
)

Parameters

name  String
The attribute name.
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.
Exceptions
ExceptionCondition
ArgumentNullException

name is null.

-or-

buffer is null.

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.

ArgumentExceptionname is an invalid attribute name.
InvalidOperationException The HtmlWriter is not in a state that allows writing attributes.
ObjectDisposedException The HtmlWriter has been disposed.
Remarks
Writes the attribute to the output stream.
See Also