Freigeben über


IPAddress.None-Feld

Stellt eine IP-Adresse bereit, die angibt, dass keine Netzwerkschnittstelle verwendet werden soll. Dieses Feld ist schreibgeschützt.

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

Syntax

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

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

Hinweise

Die Socket.Bind-Methode gibt über das None-Feld an, dass ein Socket die Clientaktivität nicht überwachen muss. Das None-Feld entspricht 255.255.255.255 im Punktformat (Dotted Quad-Notation).

Beispiel

Im folgenden Beispiel wird die None-Eigenschaft verwendet, um anzuzeigen, dass keine Netzwerkschnittstelle verwendet werden soll.

Public Shared Sub Main()

    ' Gets the IP address indicating that no network interface should be used
    ' and converts it to a string. 
    Dim address As String = IPAddress.None.ToString()
    Console.WriteLine(("IP address : " + address))
End Sub 'Main 
public static void Main()
{
   // Gets the IP address indicating that no network interface should be used 
   // and converts it to a string.
   string address = IPAddress.None.ToString();
   Console.WriteLine("IP address : " + address);
}
int main()
{
   
   // Gets the IP address indicating that no network interface should be used
   // and converts it to a String*.
   String^ address = IPAddress::None->ToString();
   Console::WriteLine( "IP address : {0}", address );
}
public static void main(String[] args)
{
    // Gets the IP address indicating that no network interface 
    //should be used and converts it to a string.
    String address = IPAddress.None.ToString();

    Console.WriteLine("IP address : " + address);
} //main

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