System.Net.Sockets.MulticastOption Class

Contains System.Net.IPAddress values used to join and drop multicast groups.

See Also: MulticastOption Members

Syntax

public class MulticastOption

Remarks

Use a System.Net.Sockets.MulticastOption to store the System.Net.IPAddress of a multicast group you want to join or drop. Use the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) method with the following parameters to join a multicast group.

socketOptionLevel

SocketOptionLevel.Udp

socketOptionName

SocketOptionName.AddMembership

object

System.Net.Sockets.MulticastOption

Use SocketOptionName.DropMembership to drop a multicast group.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0, 4.0.0.0