dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlInet Structure / Parse Method
The System.String to be parsed that contains an IP address. For IP v6 address must be in colon-hexadecimal notation. For IP v4 address must be in dotted-quad notation.

In This Topic
    Parse Method (PgSqlInet)
    In This Topic
    Converts the specified System.String representation of an IP address to its PgSqlInet equivalent.
    Syntax
    'Declaration
     
    Public Shared Function Parse( _
       ByVal value As String _
    ) As PgSqlInet
    public static PgSqlInet Parse( 
       string value
    )

    Parameters

    value
    The System.String to be parsed that contains an IP address. For IP v6 address must be in colon-hexadecimal notation. For IP v4 address must be in dotted-quad notation.

    Return Value

    A PgSqlInet structure equal to an IP address represented by the specified System.String.
    Remarks
    For IP v4 address, the number of parts (separated by a period) in the string to parse determines how the IP address is constructed. If the string is a one part address, it is stored directly in the network address. When it stores two part address, convenient for specifying a class A address, the method stores the leading part in the first byte and the trailing part in the right-most three bytes of the network address. When the string three part address, convenient for specifying a class B address, the first part is tored in the first byte, the second part in the second byte, and the final part in the right-most two bytes of the network address.
    See Also