Walter.Net.Networking
GetNetworkAddress Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > NetworkExtensionMethods Class : GetNetworkAddress Method
The address
the subnet
Get the network Broadcast address given a address and a subnet
Syntax
public static IPAddress GetNetworkAddress( 
   IPAddress address,
   IPAddress subnetMask
)

Parameters

address
The address
subnetMask
the subnet

Return Value

Network address
Exceptions
ExceptionDescription
Either IP address was null.
Lengths of IP address and subnet mask do not match if IP subnet does not belongs to IP address.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NetworkExtensionMethods Class
NetworkExtensionMethods Members