DesignerActionService.GetComponentActions Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает коллекцию списков элементов смарт-тегов, сопоставленных компоненту.
Перегрузки
| GetComponentActions(IComponent) |
Возвращает коллекцию списков элементов смарт-тегов, сопоставленных компоненту. |
| GetComponentActions(IComponent, ComponentActionsType) |
Возвращает коллекцию списков элементов смарт-тегов заданного типа, сопоставленных компоненту. |
| GetComponentActions(IComponent, ComponentActionsType) |
Возвращает коллекцию списков элементов действия конструктора указанного типа, связанных с компонентом. |
GetComponentActions(IComponent)
Возвращает коллекцию списков элементов смарт-тегов, сопоставленных компоненту.
public:
System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.Design.DesignerActionListCollection GetComponentActions (System.ComponentModel.IComponent component);
member this.GetComponentActions : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionListCollection
Public Function GetComponentActions (component As IComponent) As DesignerActionListCollection
Параметры
- component
- IComponent
Компонент, которому сопоставлены смарт-теги.
Возвращаемое значение
Коллекция смарт-тегов для заданного компонента.
Исключения
comp имеет значение null.
Комментарии
Метод GetComponentActions эквивалентен вызову GetComponentActions(IComponent, ComponentActionsType) метода с помощью type параметра All. Таким образом, возвращаемая коллекция будет содержать как списки push-уведомлений, так и списки по запросу смарт-тегов.
Возвращается DesignerActionListCollection объединение списков элементов, добавленных с помощью Add методов , а также списков, полученных из DesignerCommandSet экземпляра, полученного с сайта компонента.
См. также раздел
- GetComponentDesignerActions(IComponent, DesignerActionListCollection)
- GetComponentServiceActions(IComponent, DesignerActionListCollection)
- Add
- DesignerCommandSet
- Команды конструктора и объектная модель DesignerAction для Windows Forms
Применяется к
GetComponentActions(IComponent, ComponentActionsType)
Возвращает коллекцию списков элементов смарт-тегов заданного типа, сопоставленных компоненту.
public:
virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions (System.ComponentModel.IComponent component, System.ComponentModel.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.ComponentModel.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection
Параметры
- component
- IComponent
Компонент, которому сопоставлены смарт-теги.
- type
- ComponentActionsType
Объект ComponentActionsType, при помощи которого будет выполняться фильтрация сопоставленных смарт-тегов.
Возвращаемое значение
Коллекция смарт-тегов заданного типа для заданного компонента.
Исключения
comp имеет значение null.
Комментарии
Эта версия перегруженного GetComponentActions метода фильтрует type параметр , который может иметь одно из следующих значений.
| Значение | Описание |
|---|---|
| All | Все связанные смарт-теги. |
| Component | Только смарт-теги модели извлечения. |
| Service | Только смарт-теги модели push-уведомлений. |
Если связанный конструктор для компонента не предоставляет список смарт-тегов модели по запросу GetComponentActions , метод будет использовать пункты контекстного меню конструктора времени разработки Verbs из свойства .
См. также раздел
- GetComponentDesignerActions(IComponent, DesignerActionListCollection)
- GetComponentServiceActions(IComponent, DesignerActionListCollection)
- DesignerActionListCollection
- DesignerVerb
- ComponentActionsType
- Команды конструктора и объектная модель DesignerAction для Windows Forms
Применяется к
GetComponentActions(IComponent, ComponentActionsType)
Возвращает коллекцию списков элементов действия конструктора указанного типа, связанных с компонентом.
public:
virtual System::ComponentModel::Design::DesignerActionListCollection ^ GetComponentActions(System::ComponentModel::IComponent ^ component, System::Windows::Forms::Design::ComponentActionsType type);
public virtual System.ComponentModel.Design.DesignerActionListCollection GetComponentActions (System.ComponentModel.IComponent component, System.Windows.Forms.Design.ComponentActionsType type);
abstract member GetComponentActions : System.ComponentModel.IComponent * System.Windows.Forms.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
override this.GetComponentActions : System.ComponentModel.IComponent * System.Windows.Forms.Design.ComponentActionsType -> System.ComponentModel.Design.DesignerActionListCollection
Public Overridable Function GetComponentActions (component As IComponent, type As ComponentActionsType) As DesignerActionListCollection
Параметры
- component
- IComponent
Компонент, с которым связаны действия DesignerActions.
- type
- ComponentActionsType
Объект ComponentActionsType для фильтрации связанных действий конструктора.
Возвращаемое значение
Коллекция действий конструктора указанного типа для указанного компонента.
Исключения
component имеет значение null.
Комментарии
Эта версия перегруженного GetComponentActions метода фильтрует type параметр , который может иметь одно из следующих значений.
| Значение | Описание |
|---|---|
| All | Все связанные действия конструктора. |
| Component | Только действия конструктора моделей по запросу. |
| Service | Только действия конструктора моделей push-уведомлений. |
Если связанный конструктор для компонента не предоставляет список действий конструктора модели по запросу GetComponentActions , метод будет использовать пункты контекстного меню конструктора времени разработки Verbs из свойства .