IPAddress.None Campo
Definição
Fornece um endereço IP que indica que nenhum adaptador de rede deve ser usado.Provides an IP address that indicates that no network interface should be used. Este campo é somente leitura.This field is read-only.
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
Valor do campo
Exemplos
O exemplo a seguir usa a None propriedade para indicar que nenhuma interface de rede deve ser usada.The following example uses the None property to indicate that no network interface should be used.
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
Comentários
O Socket.Bind método usa o None campo para indicar que um Socket não deve escutar a atividade do cliente.The Socket.Bind method uses the None field to indicate that a Socket must not listen for client activity. O None campo é equivalente a 255.255.255.255 em notação pontilhada-quádrupla.The None field is equivalent to 255.255.255.255 in dotted-quad notation.