Class TxtRecord
A DnsResourceRecord represending a text resource.
TXT RRs are used to hold descriptive text. The semantics of the text depends on the domain where it is found.
Inherited Members
Namespace: DnsClient.Protocol
Assembly: DnsClient.dll
Syntax
public class TxtRecord : DnsResourceRecord
Constructors
| Improve this Doc View SourceTxtRecord(ResourceRecordInfo, String[], String[])
Initializes a new instance of the TxtRecord class.
Declaration
public TxtRecord(ResourceRecordInfo info, string[] values, string[] utf8Values)
Parameters
Type | Name | Description |
---|---|---|
ResourceRecordInfo | info | The information. |
String[] | values | The values. |
String[] | utf8Values | The UTF8 values. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
Properties
| Improve this Doc View SourceEscapedText
Gets the list of TXT values of this resource record in escaped form, valid for root file.
Declaration
public ICollection<string> EscapedText { get; }
Property Value
Type | Description |
---|---|
ICollection<String> |
Remarks
See https://tools.ietf.org/html/rfc1035#section-5.1 for escape details.
Text
Gets the actual UTF8
representation of the text values of this record.
Declaration
public ICollection<string> Text { get; }
Property Value
Type | Description |
---|---|
ICollection<String> |