DesignerActionService.GetComponentServiceActions 方法

定义

检索与组件关联的推模型智能标记。

protected:
 virtual void GetComponentServiceActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::DesignerActionListCollection ^ actionLists);
protected virtual void GetComponentServiceActions (System.ComponentModel.IComponent component, System.ComponentModel.Design.DesignerActionListCollection actionLists);
abstract member GetComponentServiceActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
override this.GetComponentServiceActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
Protected Overridable Sub GetComponentServiceActions (component As IComponent, actionLists As DesignerActionListCollection)

参数

component
IComponent

与智能标记关联的组件。

actionLists
DesignerActionListCollection

要添加关联智能标记的集合。

例外

两个参数之一或两个参数均为 null

注解

方法 GetComponentServiceActions 是方法的 GetComponentActions 帮助程序方法。 它会搜索 类型 Service为 的推送模型智能标记,然后将这些标记添加到提供的 actionLists 集合中。

适用于

另请参阅