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
stringThe domain this Record is about.
priority
ushortThe priority of this SRVRecord.
weight
ushortThe weight of this SRVRecord.
port
ushortThe port of this SRVRecord.
targetDomain
stringThe targetDomain of this SRVRecord.
ttl
intThe TTL of this SRVRecord.
Properties
Port
Gets or sets the port of this SRVRecord.
public ushort Port { get; set; }
Property Value
Priority
Gets or sets the priority of this SRVRecord.
public ushort Priority { get; set; }
Property Value
Weight
Gets or sets the weight of this SRVRecord.
public ushort Weight { get; set; }
Property Value
Methods
GetBytesInternal()
Returns a byte[] representation of this Resource.
protected override byte[] GetBytesInternal()
Returns
- byte[]
A byte[] representation of this Resource.