Freigeben über


IPAddress.Loopback-Feld

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

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

'Declaration
Public Shared ReadOnly Loopback As IPAddress
'Usage
Dim value As IPAddress

value = IPAddress.Loopback
public static readonly IPAddress Loopback
public:
static initonly IPAddress^ Loopback
public static final IPAddress Loopback
public static final var Loopback : IPAddress

Hinweise

Das Loopback-Feld entspricht 127.0.0.1 im Punktformat (Dotted Quad-Notation).

Beispiel

Im folgenden Beispiel wird die Loopback-Adresse in der Konsole ausgegeben.

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 'PrintLoopbackAddress
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);
}
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);
} //PrintLoopbackAddress

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

IPAddress-Klasse
IPAddress-Member
System.Net-Namespace