Group Property
Collapse the table of content
Expand the table of content

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 224.0.0.0 to 239.255.255.255.

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
Show:
© 2016 Microsoft