Gets if specified IP address is private LAN IP address. For example 192.168.x.x is private ip.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use Net_Utils.IsPrivateIP instead of it")] public static bool IsPrivateIP( IPAddress ip )
<ObsoleteAttribute("Use Net_Utils.IsPrivateIP instead of it")> Public Shared Function IsPrivateIP ( ip As IPAddress ) As Boolean
public: [ObsoleteAttribute(L"Use Net_Utils.IsPrivateIP instead of it")] static bool IsPrivateIP( IPAddress^ ip )
[<ObsoleteAttribute("Use Net_Utils.IsPrivateIP instead of it")>] static member IsPrivateIP : ip : IPAddress -> bool
Parameters
- ip (IPAddress)
- IP address to check.
Return Value
Boolean
Returns true if IP is private IP.
Returns true if IP is private IP.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is raised when ip is null reference. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119