Domain Detective

API Reference

Class

SpfRecord

Namespace DnsClientX
Assembly DnsClientX
Modifiers sealed

Represents a parsed SPF TXT record.

Inheritance

  • Object
  • SpfRecord

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public SpfRecord(String version, IReadOnlyList<String> mechanisms) #

Initializes a new instance of the SpfRecord class.

Parameters

version System.String requiredposition: 0
The version token (e.g. "v=spf1").
mechanisms System.Collections.Generic.IReadOnlyList{System.String} requiredposition: 1
Mechanisms parsed from the record.

Methods

public static Boolean TryParse(String record, out SpfRecord result) #
Returns: Boolean

Attempts to parse an SPF record.

Parameters

record System.String requiredposition: 0
Raw TXT record.
result DnsClientX.SpfRecord@ requiredposition: 1
Parsed record.

Returns

true if parsing succeeded.

Properties

public String Version { get; } #

Gets the SPF version token.

public IReadOnlyList<String> Mechanisms { get; } #

Gets the SPF mechanisms.

{{ include "footer" }}