ISelectionService.SetSelectedComponents 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
选择指定组件。
重载
| SetSelectedComponents(ICollection) | 
						 选择指定的组件集合。  | 
        	
| SetSelectedComponents(ICollection, SelectionTypes) | 
						 从匹配指定选择类型的指定组件集合中选择组件。  | 
        	
SetSelectedComponents(ICollection)
选择指定的组件集合。
public:
 void SetSelectedComponents(System::Collections::ICollection ^ components);
	public void SetSelectedComponents (System.Collections.ICollection components);
	public void SetSelectedComponents (System.Collections.ICollection? components);
	abstract member SetSelectedComponents : System.Collections.ICollection -> unit
	Public Sub SetSelectedComponents (components As ICollection)
	参数
- components
 - ICollection
 
要选择的组件的集合。
注解
如果数组包含 null 或不包含任何组件, SetSelectedComponents 则选择设计器中的顶级组件。
适用于
SetSelectedComponents(ICollection, SelectionTypes)
从匹配指定选择类型的指定组件集合中选择组件。
public:
 void SetSelectedComponents(System::Collections::ICollection ^ components, System::ComponentModel::Design::SelectionTypes selectionType);
	public void SetSelectedComponents (System.Collections.ICollection components, System.ComponentModel.Design.SelectionTypes selectionType);
	public void SetSelectedComponents (System.Collections.ICollection? components, System.ComponentModel.Design.SelectionTypes selectionType);
	abstract member SetSelectedComponents : System.Collections.ICollection * System.ComponentModel.Design.SelectionTypes -> unit
	Public Sub SetSelectedComponents (components As ICollection, selectionType As SelectionTypes)
	参数
- components
 - ICollection
 
要选择的组件的集合。
- selectionType
 - SelectionTypes
 
SelectionTypes 枚举中的一个值。 默认值为 Normal。
注解
如果数组包含 null 或不包含任何组件, SetSelectedComponents 则选择设计器中的顶级组件。