MimeUtilsAppendQuoted Method

Quote the specified text and append it into the string builder.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static StringBuilder AppendQuoted(
	StringBuilder builder,
	string text
)

Parameters

builder  StringBuilder
The string builder.
text  String
The text to quote.

Return Value

StringBuilder
The string builder.

Remarks

Quotes the specified text, enclosing it in double-quotes and escaping any backslashes and double-quotes within.

Exceptions

ArgumentNullException

builder is .

-or-

text is .

See Also