LumiSoft Mail Server User API
CompareIP Method (source, destination)
Namespaces > LumiSoft.Net > Core > 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.
Syntax

C# | Visual Basic | Managed C++

    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
    )

Parameters

source (IPAddress)
  Source IP address.
destination (IPAddress)
  Destination IP address.

Return Value

[Missing <returns> documentation for M:LumiSoft.Net.Core.CompareIP(System.Net.IPAddress,System.Net.IPAddress)]

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)