IPv6MulticastOption IPv6MulticastOption IPv6MulticastOption IPv6MulticastOption Class

Definición

Contiene valores de opciones para unirse a un grupo de multidifusión IPv6.Contains option values for joining an IPv6 multicast group.

public ref class IPv6MulticastOption
public class IPv6MulticastOption
type IPv6MulticastOption = class
Public Class IPv6MulticastOption
Herencia
IPv6MulticastOptionIPv6MulticastOptionIPv6MulticastOptionIPv6MulticastOption

Ejemplos

En el ejemplo siguiente se crea un IPv6MulticastOption objeto.The following example creates an IPv6MulticastOption object.

// Exercise the use of the IPv6MulticastOption.
Console::WriteLine( "Instantiate IPv6MulticastOption(IPAddress)" );

// Instantiate IPv6MulticastOption using one of the
// overloaded constructors.
IPv6MulticastOption^ ipv6MulticastOption = gcnew IPv6MulticastOption( m_GrpAddr );

// Store the IPAdress multicast options.
IPAddress^ group = ipv6MulticastOption->Group;
__int64 interfaceIndex = ipv6MulticastOption->InterfaceIndex;

// Display IPv6MulticastOption properties.
Console::WriteLine( "IPv6MulticastOption::Group: [ {0}]", group );
Console::WriteLine( "IPv6MulticastOption::InterfaceIndex: [ {0}]", interfaceIndex );

// Exercise the use of the IPv6MulticastOption.
Console.WriteLine("Instantiate IPv6MulticastOption(IPAddress)");

// Instantiate IPv6MulticastOption using one of the 
// overloaded constructors.
IPv6MulticastOption ipv6MulticastOption = new IPv6MulticastOption(m_GrpAddr);

// Store the IPAdress multicast options.
IPAddress group =  ipv6MulticastOption.Group;
long interfaceIndex = ipv6MulticastOption.InterfaceIndex;

// Display IPv6MulticastOption properties.
Console.WriteLine("IPv6MulticastOption.Group: [" + group  + "]");
Console.WriteLine("IPv6MulticastOption.InterfaceIndex: [" + interfaceIndex + "]");

' Exercise the use of the IPv6MulticastOption.
Console.WriteLine("Instantiate IPv6MulticastOption(IPAddress)")

' Instantiate IPv6MulticastOption using one of the 
' overloaded constructors.
Dim ipv6MulticastOption As New IPv6MulticastOption(m_GrpAddr)

' Store the IPAdress multicast options.
Dim group As IPAddress = ipv6MulticastOption.Group
Dim interfaceIndex As Long = ipv6MulticastOption.InterfaceIndex

' Display IPv6MulticastOption properties.
Console.WriteLine(("IPv6MulticastOption.Group: [" + group.ToString() + "]"))
Console.WriteLine(("IPv6MulticastOption.InterfaceIndex: [" + interfaceIndex.ToString() + "]"))

Constructores

IPv6MulticastOption(IPAddress) IPv6MulticastOption(IPAddress) IPv6MulticastOption(IPAddress) IPv6MulticastOption(IPAddress)

Inicializa una nueva versión de la clase IPv6MulticastOption para el grupo de multidifusión de IP especificado.Initializes a new version of the IPv6MulticastOption class for the specified IP multicast group.

IPv6MulticastOption(IPAddress, Int64) IPv6MulticastOption(IPAddress, Int64) IPv6MulticastOption(IPAddress, Int64) IPv6MulticastOption(IPAddress, Int64)

Inicializa una nueva instancia de la clase IPv6MulticastOption con el grupo de multidifusión IP y la dirección de interfaz local especificados.Initializes a new instance of the IPv6MulticastOption class with the specified IP multicast group and the local interface address.

Propiedades

Group Group Group Group

Obtiene o establece la dirección IP de un grupo de multidifusión.Gets or sets the IP address of a multicast group.

InterfaceIndex InterfaceIndex InterfaceIndex InterfaceIndex

Obtiene o establece el índice de interfaz asociado a un grupo de multidifusión.Gets or sets the interface index that is associated with a multicast group.

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a