Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

UdpSingleSourceMulticastClient Constructor

.NET Framework 4.6 and 4.5

Note: This API is now obsolete.

Creates a new UdpSingleSourceMulticastClient UDP client that can subscribe to a group address and receive datagrams from a single source.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

[ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", 
public UdpSingleSourceMulticastClient(
	IPAddress sourceAddress,
	IPAddress groupAddress,
	int localPort


Type: System.Net.IPAddress

The sender source address for this receiver to subscribe to.

Type: System.Net.IPAddress

The multicast group address for this receiver to subscribe to.

Type: System.Int32

The local port for this receiver to bind to.


sourceAddress and groupAddress must be the same address family.


sourceAddress is a null reference (Nothing in Visual Basic).


groupAddress is a null reference (Nothing in Visual Basic).


localPort is less than 0


localPort is greater than 65,535.


localPort is less than 1024

The #ctor constructor associates a UDP multicast socket with a group address and port, but does not bind or otherwise use the socket.

The groupAddress parameter may be either an IPv6 or IPv4 multicast address. However, the address family of the sourceAddress and groupAddress parameters must the same.

The localPort parameter must not specify a port less than 1,024.

.NET Framework

Obsolete (does not compile) in 4.5.2 and later

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft