Table of Contents

Class SrvRecord

Namespace
Iot.Device.MulticastDns.Entities
Assembly
Iot.Device.MulticastDns.dll

Represents a SRV Record Resource (DNS Resource Type 33).

public class SrvRecord : TargetResource
Inheritance
SrvRecord
Inherited Members

Constructors

SrvRecord(string, ushort, ushort, ushort, string, int)

Initializes a new instance of the SrvRecord class.

public SrvRecord(string domain, ushort priority, ushort weight, ushort port, string targetDomain, int ttl = 2000)

Parameters

domain string

The domain this Record is about.

priority ushort

The priority of this SRVRecord.

weight ushort

The weight of this SRVRecord.

port ushort

The port of this SRVRecord.

targetDomain string

The targetDomain of this SRVRecord.

ttl int

The TTL of this SRVRecord.

Properties

Port

Gets or sets the port of this SRVRecord.

public ushort Port { get; set; }

Property Value

ushort

Priority

Gets or sets the priority of this SRVRecord.

public ushort Priority { get; set; }

Property Value

ushort

Weight

Gets or sets the weight of this SRVRecord.

public ushort Weight { get; set; }

Property Value

ushort

Methods

GetBytesInternal()

Returns a byte[] representation of this Resource.

protected override byte[] GetBytesInternal()

Returns

byte[]

A byte[] representation of this Resource.