IPAddress.None Pole

Definice

Poskytuje IP adresu, která označuje, že by se nemělo používat žádné síťové rozhraní. Toto pole je jen ke čtení.

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 

Hodnota pole

Příklady

Následující příklad používá None vlastnost k označení, že by nemělo být použito žádné síťové rozhraní.

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()
{
   // 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

Poznámky

Metoda Socket.Bind používá None pole k označení, že Socket uživatel nesmí naslouchat aktivitě klienta. Pole None odpovídá 255.255.255.255.255 v tečkované čtyřúhelné notaci.

Platí pro