IPAddressExtensionsGetNetworkAddress(IPAddress, Int32) Method
Gets the network address for a specified IPAddress and netmask
Namespace: ARSoft.Tools.NetAssembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
public static IPAddress GetNetworkAddress(
this IPAddress ipAddress,
int netmask
)
<ExtensionAttribute>
Public Shared Function GetNetworkAddress (
ipAddress As IPAddress,
netmask As Integer
) As IPAddress
public:
[ExtensionAttribute]
static IPAddress^ GetNetworkAddress(
IPAddress^ ipAddress,
int netmask
)
[<ExtensionAttribute>]
static member GetNetworkAddress :
ipAddress : IPAddress *
netmask : int -> IPAddress
- ipAddress IPAddress
- IPAddress, for that the network address should be returned
- netmask Int32
- Netmask in CIDR format
IPAddress New instance of IPAddress with the network address assigend 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).