Search Results for

    Show / Hide Table of Contents

    Class DNSLookupOptions

    Options for DNS query.

    Inheritance
    object
    DNSLookupOptions
    Implements
    IEquatable<DNSLookupOptions>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "DNSLookupOptions")]
    public class DNSLookupOptions : IEquatable<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).

    System.Collections.Generic.List<T><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
    System.Collections.Generic.List<T><DNSLookupOptions.RecordTypesEnum>

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

    Methods

    View Source

    Equals(DNSLookupOptions)

    Returns true if DNSLookupOptions instances are equal

    Declaration
    public bool Equals(DNSLookupOptions input)
    Parameters
    Type Name Description
    DNSLookupOptions input

    Instance of DNSLookupOptions to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    Equals(object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    object input

    Object to be compared

    Returns
    Type Description
    bool

    Boolean

    Overrides
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    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()
    View Source

    Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    ValidationContext validationContext

    Validation context

    Returns
    Type Description
    IEnumerable<ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.