IPAddress.None Veld

Definitie

Biedt een IP-adres dat aangeeft dat er geen netwerkinterface moet worden gebruikt. Dit veld is alleen-lezen.

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

Waarde van veld

Voorbeelden

In het volgende voorbeeld wordt de None eigenschap gebruikt om aan te geven dat er geen netwerkinterface moet worden gebruikt.

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);
}
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

Opmerkingen

De Socket.Bind methode gebruikt het None veld om aan te geven dat een Socket clientactiviteit niet mag luisteren. Het None veld is gelijk aan 255.255.255.255 in gestippelde quad-notatie.

Van toepassing op