Class MxRecord
A DnsResourceRecord represending a mail exchange.
Inherited Members
Namespace: DnsClient.Protocol
Assembly: DnsClient.dll
Syntax
[CLSCompliant(false)]
public class MxRecord : DnsResourceRecord
Constructors
| Improve this Doc View SourceMxRecord(ResourceRecordInfo, UInt16, DnsString)
Initializes a new instance of the MxRecord class.
Declaration
public MxRecord(ResourceRecordInfo info, ushort preference, DnsString domainName)
Parameters
| Type | Name | Description |
|---|---|---|
| ResourceRecordInfo | info | The information. |
| UInt16 | preference | The preference. |
| DnsString | domainName | Name of the domain. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If |
Properties
| Improve this Doc View SourceExchange
A domain name which specifies a host willing to act as a mail exchange.
Declaration
public DnsString Exchange { get; }
Property Value
| Type | Description |
|---|---|
| DnsString |
Preference
Gets a 16 bit integer which specifies the preference given to this RR among others at the same owner. Lower values are preferred.
Declaration
public ushort Preference { get; }
Property Value
| Type | Description |
|---|---|
| UInt16 |