Click or drag to resize
IPAddressExtensionsIsInSameSubnet Method

Namespace: Ozeki.Network
Assembly: 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
)

Parameters

localIP
Type: System.NetIPAddress
remoteIP
Type: System.NetIPAddress
subnetMask (Optional)
Type: System.NetIPAddress

Return Value

Type: Boolean

Usage 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