IPAddress.Any IPAddress.Any IPAddress.Any IPAddress.Any Field

定义

提供一个 IP 地址,指示服务器必须侦听所有网络接口上的客户端活动。Provides an IP address that indicates that the server must listen for client activity on all network interfaces. 此字段为只读。This field is read-only.

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

字段值

注解

Socket.Bind方法使用Any字段指示Socket实例必须侦听所有网络接口上的客户端活动。The Socket.Bind method uses the Any field to indicate that a Socket instance must listen for client activity on all network interfaces.

Any字段等于 0.0.0.0 采用点分四组表示法。The Any field is equivalent to 0.0.0.0 in dotted-quad notation.

适用于