共用方式為


IPAddressCollection.Contains(IPAddress) 方法

定義

檢查集合是否包含指定的 IPAddress 物件。

public:
 virtual bool Contains(System::Net::IPAddress ^ address);
public virtual bool Contains (System.Net.IPAddress address);
abstract member Contains : System.Net.IPAddress -> bool
override this.Contains : System.Net.IPAddress -> bool
Public Overridable Function Contains (address As IPAddress) As Boolean

參數

address
IPAddress

要在集合中搜尋的 IPAddress 物件。

傳回

如果集合中有存在 IPAddress 物件,則為 true,否則為 false

實作

適用於