IPAddress.Any 欄位

定義

提供指示伺服器必須在所有網路介面上接聽用戶端活動的 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.

適用於