Search Results for

    Show / Hide Table of Contents

    Class DNSLookupOptions

    Options for DNS query.

    Inheritance
    object
    DNSLookupOptions
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "DNSLookupOptions")]
    public class DNSLookupOptions : IValidatableObject

    Constructors

    View Source

    DNSLookupOptions()

    Initializes a new instance of the DNSLookupOptions class.

    Declaration
    [JsonConstructor]
    protected DNSLookupOptions()
    View Source

    DNSLookupOptions(string, List<RecordTypesEnum>, bool)

    Initializes a new instance of the DNSLookupOptions class.

    Declaration
    public DNSLookupOptions(string hostname = null, List<DNSLookupOptions.RecordTypesEnum> recordTypes = null, bool omitFinalDNSDot = false)
    Parameters
    Type Name Description
    string hostname

    List of record types you wish to query such as MX, DNS, TXT, NS, A etc. (required).

    List<DNSLookupOptions.RecordTypesEnum> recordTypes

    List of record types you wish to query such as MX, DNS, TXT, NS, A etc. (required).

    bool omitFinalDNSDot

    Optionally control whether to omit the final dot in full DNS name values. (required).

    Properties

    View Source

    Hostname

    List of record types you wish to query such as MX, DNS, TXT, NS, A etc.

    Declaration
    [DataMember(Name = "hostname", IsRequired = true, EmitDefaultValue = true)]
    public string Hostname { get; set; }
    Property Value
    Type Description
    string

    List of record types you wish to query such as MX, DNS, TXT, NS, A etc.

    View Source

    OmitFinalDNSDot

    Optionally control whether to omit the final dot in full DNS name values.

    Declaration
    [DataMember(Name = "omitFinalDNSDot", IsRequired = true, EmitDefaultValue = true)]
    public bool OmitFinalDNSDot { get; set; }
    Property Value
    Type Description
    bool

    Optionally control whether to omit the final dot in full DNS name values.

    View Source

    RecordTypes

    List of record types you wish to query such as MX, DNS, TXT, NS, A etc.

    Declaration
    [DataMember(Name = "recordTypes", IsRequired = true, EmitDefaultValue = true)]
    public List<DNSLookupOptions.RecordTypesEnum> RecordTypes { get; set; }
    Property Value
    Type Description
    List<DNSLookupOptions.RecordTypesEnum>

    List of record types you wish to query such as MX, DNS, TXT, NS, A etc.

    Methods

    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.