IPAddress.Broadcast Campo

Definición

Proporciona la dirección de difusión IP. Este campo es de solo lectura.

public: static initonly System::Net::IPAddress ^ Broadcast;
public static readonly System.Net.IPAddress Broadcast;
 staticval mutable Broadcast : System.Net.IPAddress
Public Shared ReadOnly Broadcast As IPAddress 

Valor de campo

Ejemplos

En el ejemplo siguiente se imprime la Broadcast dirección en la consola.

void PrintBroadcastAddress()
{
   // Get the IP Broadcast address and convert it to string.
   String^ IpAddressString = IPAddress::Broadcast->ToString();
   Console::WriteLine( "\nBroadcast IP address : {0}", IpAddressString );
}
public void PrintBroadcastAddress()
{
  // Get the IP Broadcast address and convert it to string.
  string ipAddressString = IPAddress.Broadcast.ToString();
  Console.WriteLine("Broadcast IP address: {0}", ipAddressString);
}
Public Sub PrintBroadcastAddress()
    ' gets the IP Broadcast address and convert it to string.
    Dim IpAddressString As [String] = IPAddress.Broadcast.ToString()
    Console.WriteLine((ControlChars.Cr + "Broadcast IP address : " + IpAddressString))
End Sub

Comentarios

El Broadcast campo es equivalente a 255.255.255.255 en notación punto-quad.

Se aplica a