DesignerActionService.Contains(IComponent) 方法

定義

決定目前智慧標籤服務是否為指定元件管理動作清單。

public:
 bool Contains(System::ComponentModel::IComponent ^ comp);
public bool Contains (System.ComponentModel.IComponent comp);
member this.Contains : System.ComponentModel.IComponent -> bool
Public Function Contains (comp As IComponent) As Boolean

參數

comp
IComponent

要搜尋的 IComponent

傳回

如果元件由目前服務管理,則為 true,否則為 false

例外狀況

compnull

備註

方法 Contains 只會辨識推播模型智慧標記,這些標記與 Add 與方法的元件相關聯。

雖然設計時間工具所建立的並行 DesignerActionService 實例數目沒有任何結構限制,但通常每個設計介面只會建立一個服務實例。

適用於

另請參閱