MulticastOption::Group Property

 

Gets or sets the IP address of a multicast group.

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

public:
property IPAddress^ Group {
	IPAddress^ get();
	void set(IPAddress^ value);
}

Property Value

Type: System.Net::IPAddress^

An IPAddress that contains the Internet address of a multicast group.

Valid IP addresses for multicast packets are in the range 224.0.0.0 to 239.255.255.255.

The following example displays the value of this property.

static void MulticastOptionProperties()
{
   Console::WriteLine( "Current multicast group is: {0}", mcastOption->Group );
   Console::WriteLine( "Current multicast local address is: {0}", mcastOption->LocalAddress );
}


.NET Framework
Available since 1.1
Return to top
Show: