Gets if specified IP address is private LAN IP address. For example 192.168.x.x is private ip.
| C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Use Net_Utils.IsPrivateIP instead of it")] public static bool IsPrivateIP( string ip )
<ObsoleteAttribute("Use Net_Utils.IsPrivateIP instead of it")> _ Public Shared Function IsPrivateIP ( _ ip As String _ ) As Boolean
[ObsoleteAttribute(L"Use Net_Utils.IsPrivateIP instead of it")] public: static bool IsPrivateIP( String^ ip )
- ip (String)
- IP address to check.
Returns true if IP is private IP.
| Exception | Condition |
|---|---|
| ArgumentNullException | Is raised when ip is null reference. |