Dns Txt Response(Dns Query Status) Constructor
Initialize a new instance of the DnsTxtResponse class.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public DnsTxtResponse(
DnsQueryStatus status
)Parameters
- status DnsQueryStatus
- The status of the query.
Remarks
Creates a new DnsTxtResponse that does not contain any records.
This is typically used for NonExistentDomain and TemporaryFailure responses, but may also be used with Success to indicate that the domain name exists but has no TXT records.
Exceptions
| ArgumentOutOfRangeException | status is not a valid DnsQueryStatus. |