Walter.Net.Networking
GetBroadcastAddress Method
Walter.Net.Networking Assembly > Walter.Net.Networking Namespace > NetworkExtensionMethods Class : GetBroadcastAddress Method
The IP address
the subnet mask
Get Broadcast address of a given IP address
Syntax
public static IPAddress GetBroadcastAddress( 
   IPAddress address,
   IPAddress subnetMask
)

Parameters

address
The IP address
subnetMask
the subnet mask

Return Value

The broadcast address
Exceptions
ExceptionDescription
Lengths of IP address and subnet mask do not match if IP subnet does not belongs to IP address.
Either IP address was null.
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