Unosquare
    Show / Hide Table of Contents

    Class IPAddressUtility

    Provides utility methods to work with the class.

    Inheritance
    Object
    IPAddressUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan.Net
    Syntax
    public static class IPAddressUtility

    Methods

    TryParse(String, out IPAddress)

    Tries to convert the string representation of an IP address into an instance of

    This method works the same way as , with the exception that it will not recognize a decimal number alone as an IPv4 address.

    Declaration
    public static bool TryParse(string str, out IPAddress address)
    Parameters
    Type Name Description
    String str

    The string to be converted.

    IPAddress address

    When this method returns true, an instance of representing the same address as str.

    Returns
    Type Description
    Boolean

    true if the conversion was successful; otherwise, false.

    Comments

    Back to top Copyright © 2017-2019 Unosquare