LumiSoft Net Help
CompareIP Method (source, destination)
Namespaces ► LumiSoft.Net ► Net_Utils ► CompareIP(IPAddress, IPAddress)
Compares 2 IP addresses. Returns 0 if IPs are equal, returns positive value if destination IP is bigger than source IP, returns negative value if destination IP is smaller than source IP.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public static int CompareIP(
    	IPAddress source,
    	IPAddress destination
    )

    Public Shared Function CompareIP (
    	source As IPAddress,
    	destination As IPAddress
    ) As Integer

    public:
    static int CompareIP(
    	IPAddress^ source,
    	IPAddress^ destination
    )

    static member CompareIP :
            source : IPAddress *
            destination : IPAddress -> int

Parameters

source (IPAddress)
  Source IP address.

destination (IPAddress)
  Destination IP address.

Return Value
Int32
Returns 0 if IPs are equal, returns positive value if destination IP is bigger than source IP, returns negative value if destination IP is smaller than source IP.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119