Class TxtRecord
- Namespace
- Iot.Device.MulticastDns.Entities
- Assembly
- Iot.Device.MulticastDns.dll
Represents a TXT Record Resource (DNS Resource Type 16).
public class TxtRecord : Resource
- Inheritance
-
TxtRecord
- Inherited Members
Constructors
TxtRecord(string, string, int)
Initializes a new instance of the TxtRecord class.
public TxtRecord(string domain, string txt, int ttl = 2000)
Parameters
domain
stringThe domain this Record is about.
txt
stringThe text this resource represents.
ttl
intThe TTL of this SRVRecord.
Properties
Txt
Gets the text this resource represents.
public string Txt { get; }
Property Value
Methods
GetBytesInternal()
Returns a byte[] representation of this Resource.
protected override byte[] GetBytesInternal()
Returns
- byte[]
A byte[] representation of this Resource.