IPAddress.Loopback Feld

Definition

Stellt die IP-Loopback-Adresse bereit. Dieses Feld ist schreibgeschützt.

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

Feldwert

Beispiele

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

void PrintLoopbackAddress()
{
   // Gets the IP loopback address and converts it to a string.
   String^ IpAddressString = IPAddress::Loopback->ToString();
   Console::WriteLine( "Loopback IP address : {0}", IpAddressString );
}
public void PrintLoopbackAddress()
{
  // Gets the IP loopback address and converts it to a string.
  String IpAddressString = IPAddress.Loopback.ToString();
  Console.WriteLine("Loopback IP address : " + IpAddressString);
}
Public Sub PrintLoopbackAddress()
    ' Gets the IP loopback address and converts it to a string.
    Dim IpAddressString As [String] = IPAddress.Loopback.ToString()
    Console.WriteLine(("Loopback IP address : " + IpAddressString))
End Sub

Hinweise

Das Loopback Feld entspricht 127.0.0.1 in punktierter Quad-Notation.

Gilt für: