Assembly: System (in system.dll)
'Declaration Public Property EnableBroadcast As Boolean 'Usage Dim instance As Socket Dim value As Boolean value = instance.EnableBroadcast instance.EnableBroadcast = value
/** @property */ public boolean get_EnableBroadcast () /** @property */ public void set_EnableBroadcast (boolean value)
public function get EnableBroadcast () : boolean public function set EnableBroadcast (value : boolean)
Property Valuetrue if the Socket allows broadcast packets; otherwise, false. The default is false.
Broadcasting is limited to a specific subnet, and must use User Datagram Protocol (UDP.) For Internet Protocol version 4, you can broadcast to your local subnet by sending a packet to 255.255.255.255; or you can use the directed broadcast address, which is the network portion of an Internet Protocol (IP) address with all bits set in the host portion. For example, if your IP address is 192.168.1.40 (a Class C address, with a netmask of 255.255.255.0 -- the network portion is the first three octets, and the host portion is the last octet), your directed broadcast address is 192.168.1.255.
Setting this property on a Transmission Control Protocol (TCP) socket will have no effect.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.