Returns broadcast address for the objects IP and supplied subnet mask. Subnet mask validity is not confirmed before performing the new value calculation so you should make sure parameter is a valid subnet mask by using IsValidMask()()()() method. Broadcast address is calculated by changing every bit in the subnet mask that is set to value 0 into 1 in the address value.

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: (0.9.1)


public IpAddress GetBroadcastAddress(
	IpAddress mask
Visual Basic
Public Function GetBroadcastAddress ( _
	mask As IpAddress _
) As IpAddress
Visual C++
IpAddress^ GetBroadcastAddress(
	IpAddress^ mask


Type: SnmpSharpNet..::..IpAddress
Subnet mask to apply to the object

Return Value

New IP address containing broadcast address

See Also