DnsTxtResponse(IEnumerableString) Constructor

Initialize a new instance of the DnsTxtResponse class.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public DnsTxtResponse(
	IEnumerable<string> records
)

Parameters

records  IEnumerableString
The TXT records.

Remarks

Creates a new successful DnsTxtResponse containing the specified TXT records.

Each string MUST be the concatenation of all of the character-strings that make up a single TXT record.

Exceptions

ArgumentNullException records is .
ArgumentException One or more of the records is .

See Also