DatagramSocketControl.MulticastOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a Boolean value that specifies whether the DatagramSocket is able to coexist with other Win32 or WinRT multicast sockets bound to the same address/port.
public:
property bool MulticastOnly { bool get(); void set(bool value); };
bool MulticastOnly();
void MulticastOnly(bool value);
public bool MulticastOnly { get; set; }
var boolean = datagramSocketControl.multicastOnly;
datagramSocketControl.multicastOnly = boolean;
Public Property MulticastOnly As Boolean
Property Value
bool
Setting this property to true enables the DatagramSocket instance to share its local port with any Win32 sockets that are bound using SO_REUSEADDR/SO_REUSE_MULTICASTPORT, and with any other DatagramSocket instances that have MulticastOnly set to true.