mscorlib(4.0.0.0) API with additions
IPv6MulticastOption.cs
1 namespace System.Net.Sockets
2 {
4  public class IPv6MulticastOption
5  {
6  private IPAddress m_Group;
7 
8  private long m_Interface;
9 
14  public IPAddress Group
15  {
16  get
17  {
18  return m_Group;
19  }
20  set
21  {
22  if (value == null)
23  {
24  throw new ArgumentNullException("value");
25  }
26  m_Group = value;
27  }
28  }
29 
33  public long InterfaceIndex
34  {
35  get
36  {
37  return m_Interface;
38  }
39  set
40  {
41  if (value < 0 || value > uint.MaxValue)
42  {
43  throw new ArgumentOutOfRangeException("value");
44  }
45  m_Interface = value;
46  }
47  }
48 
57  public IPv6MulticastOption(IPAddress group, long ifindex)
58  {
59  if (group == null)
60  {
61  throw new ArgumentNullException("group");
62  }
63  if (ifindex < 0 || ifindex > uint.MaxValue)
64  {
65  throw new ArgumentOutOfRangeException("ifindex");
66  }
67  Group = group;
68  InterfaceIndex = ifindex;
69  }
70 
76  {
77  if (group == null)
78  {
79  throw new ArgumentNullException("group");
80  }
81  Group = group;
82  InterfaceIndex = 0L;
83  }
84  }
85 }
IPv6MulticastOption(IPAddress group)
Initializes a new version of the T:System.Net.Sockets.IPv6MulticastOption class for the specified IP ...
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
Provides an Internet Protocol (IP) address.
Definition: IPAddress.cs:10
Contains option values for joining an IPv6 multicast group.
IPv6MulticastOption(IPAddress group, long ifindex)
Initializes a new instance of the T:System.Net.Sockets.IPv6MulticastOption class with the specified I...
long InterfaceIndex
Gets or sets the interface index that is associated with a multicast group.
IPAddress Group
Gets or sets the IP address of a multicast group.