Class SrvRecord
A DnsResourceRecord represending a location of the server(s) for a specific protocol and domain.
Inherited Members
Namespace: DnsClient.Protocol
Assembly: DnsClient.dll
Syntax
[CLSCompliant(false)]
public class SrvRecord : DnsResourceRecord
Constructors
| Improve this Doc View SourceSrvRecord(ResourceRecordInfo, UInt16, UInt16, UInt16, DnsString)
Initializes a new instance of the SrvRecord class.
Declaration
public SrvRecord(ResourceRecordInfo info, ushort priority, ushort weigth, ushort port, DnsString target)
Parameters
Type | Name | Description |
---|---|---|
ResourceRecordInfo | info | The information. |
UInt16 | priority | The priority. |
UInt16 | weigth | The weigth. |
UInt16 | port | The port. |
DnsString | target | The target. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If |
Properties
| Improve this Doc View SourcePort
Gets the port.
Declaration
public ushort Port { get; }
Property Value
Type | Description |
---|---|
UInt16 | The port. |
Priority
Gets the priority.
Declaration
public ushort Priority { get; }
Property Value
Type | Description |
---|---|
UInt16 | The priority. |
Target
Gets the target domain name.
Declaration
public DnsString Target { get; }
Property Value
Type | Description |
---|---|
DnsString | The target. |
Weight
Gets the weight.
Declaration
public ushort Weight { get; }
Property Value
Type | Description |
---|---|
UInt16 | The weight. |