Show / Hide Table of Contents

Class DnsMxResource

Represents a mail server DNS record. See MX.

Inheritance
Object
DnsStringResource
DnsMxResource
Implements
IDnsResource
IDnsByteArrayWriter
IEquatable<DnsStringResource>
IEquatable<DnsMxResource>
Inherited Members
DnsStringResource.Entries
DnsStringResource.Equals(DnsStringResource)
Namespace: Ae.Dns.Protocol.Records
Assembly: Ae.Dns.Protocol.dll
Syntax
public sealed class DnsMxResource : DnsStringResource, IDnsResource, IDnsByteArrayWriter, IEquatable<DnsStringResource>, IEquatable<DnsMxResource>

Properties

| Improve this Doc View Source

CanUseCompression

Describes whether this string resource can use string compression.

Declaration
protected override bool CanUseCompression { get; }
Property Value
Type Description
Boolean
Overrides
DnsStringResource.CanUseCompression
| Improve this Doc View Source

Exchange

The domain name of a mailserver.

Declaration
public string Exchange { get; }
Property Value
Type Description
String

The host name must map directly to one or more address records (A, or AAAA) in the DNS, and must not point to any CNAME records.

| Improve this Doc View Source

Preference

The priority or preference field identifies which mailserver should be preferred.

Declaration
public ushort Preference { get; set; }
Property Value
Type Description
UInt16

The priority field identifies which mailserver should be preferred - if multiple values are the same, mail would be expected to flow evenly to all hosts.

Methods

| Improve this Doc View Source

Equals(DnsMxResource)

Declaration
public bool Equals(DnsMxResource other)
Parameters
Type Name Description
DnsMxResource other
Returns
Type Description
Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
DnsStringResource.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
DnsStringResource.GetHashCode()
| Improve this Doc View Source

ReadBytes(ReadOnlyMemory<Byte>, ref Int32, Int32)

Read from the specified byte array, starting at the specified offset.

Declaration
public override void ReadBytes(ReadOnlyMemory<byte> bytes, ref int offset, int length)
Parameters
Type Name Description
ReadOnlyMemory<Byte> bytes

The byte array to read from.

Int32 offset

The offset to start at.

Int32 length

The maximum number of bytes to read.

Overrides
DnsStringResource.ReadBytes(ReadOnlyMemory<Byte>, ref Int32, Int32)
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
| Improve this Doc View Source

WriteBytes(Memory<Byte>, ref Int32)

Write to the the specified byte array.

Declaration
public override void WriteBytes(Memory<byte> bytes, ref int offset)
Parameters
Type Name Description
Memory<Byte> bytes

The byte array to read from.

Int32 offset

The offset to start at.

Overrides
DnsStringResource.WriteBytes(Memory<Byte>, ref Int32)

Implements

IDnsResource
IDnsByteArrayWriter
IEquatable<>
IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX