IPAddressExtensionsIsInSameSubnet Method |
Namespace: Ozeki.NetworkAssembly: OzekiSDK (in OzekiSDK.dll) Version: 1.8.12.0 (1.8.12)
Syntax public static bool IsInSameSubnet(
this IPAddress localIP,
IPAddress remoteIP,
IPAddress subnetMask = null
)
<ExtensionAttribute>
Public Shared Function IsInSameSubnet (
localIP As IPAddress,
remoteIP As IPAddress,
Optional subnetMask As IPAddress = Nothing
) As Boolean
public:
[ExtensionAttribute]
static bool IsInSameSubnet(
IPAddress^ localIP,
IPAddress^ remoteIP,
IPAddress^ subnetMask = nullptr
)
[<ExtensionAttribute>]
static member IsInSameSubnet :
localIP : IPAddress *
remoteIP : IPAddress *
?subnetMask : IPAddress
(* Defaults:
let _subnetMask = defaultArg subnetMask null
*)
-> bool
Parameters
- localIP
- Type: System.NetIPAddress
- remoteIP
- Type: System.NetIPAddress
- subnetMask (Optional)
- Type: System.NetIPAddress
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPAddress. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also