MulticastOption.Group Property


Gets or sets the IP address of a multicast group.

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

public IPAddress Group { get; set; }

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 to

The following example displays the value of this property.

private static void MulticastOptionProperties()
  Console.WriteLine("Current multicast group is: " + mcastOption.Group);
  Console.WriteLine("Current multicast local address is: " + mcastOption.LocalAddress);

.NET Framework
Available since 1.1
Return to top