TreeNodeBindingCollection.Contains(TreeNodeBinding) 方法

定義

判斷指定的 TreeNodeBinding 物件是否在集合中。

public:
 bool Contains(System::Web::UI::WebControls::TreeNodeBinding ^ binding);
public bool Contains (System.Web.UI.WebControls.TreeNodeBinding binding);
member this.Contains : System.Web.UI.WebControls.TreeNodeBinding -> bool
Public Function Contains (binding As TreeNodeBinding) As Boolean

參數

binding
TreeNodeBinding

要尋找的 TreeNodeBinding

傳回

Boolean

如果 TreeNodeBinding 位於集合中,則為 true,否則為 false

備註

Contains使用 方法來判斷 物件是否 TreeNodeBinding 包含在 物件中 TreeNodeBindingCollection 。 這個方法通常用於在執行工作之前測試物件是否存在 TreeNodeBinding ,例如在集合中加入或移除 TreeNodeBinding

適用於

另請參閱