Class RecordMx
Mail exchange DNS record.
public sealed record RecordMx : Record, IEquatable<Record>, IEquatable<RecordMx>
- Inheritance
-
RecordMx
- Implements
- Inherited Members
Remarks
Standard MX mail DNS record
Constructors
RecordMx(RecordReader)
Initializes a new instance of the RecordMx class.
public RecordMx(RecordReader reader)
Parameters
readerRecordReaderRecordReader for the record data.
Properties
Exchange
Gets the exchange.
public string Exchange { get; }
Property Value
Preference
Gets the preference.
public ushort Preference { get; }
Property Value
Methods
ToString()
Returns a string representation of the mail exchange record.
public override string ToString()
Returns
- string
The preference followed by the exchange.
Remarks
Required rather than optional: without it the compiler-generated record ToString prints ResourceRecord, whose own ToString prints this record back, and the pair recurse until the stack is exhausted.