Table of Contents

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 string

The domain this Record is about.

txt string

The text this resource represents.

ttl int

The TTL of this SRVRecord.

Properties

Txt

Gets the text this resource represents.

public string Txt { get; }

Property Value

string

Methods

GetBytesInternal()

Returns a byte[] representation of this Resource.

protected override byte[] GetBytesInternal()

Returns

byte[]

A byte[] representation of this Resource.