Freigeben über


IPAddress.Broadcast Feld

Definition

Stellt die IP-Übertragungsadresse bereit. Dieses Feld ist schreibgeschützt.

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 

Feldwert

Beispiele

Im folgenden Beispiel wird die Broadcast Adresse an die Konsole ausgegeben.

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

Hinweise

Das Broadcast Feld entspricht 255.255.255.255.255 in punktted-quad Notation.

Gilt für: