SelectionContainer.ISelectionContainer.SelectObjects 方法

设置可选对象的集合。

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Private Function SelectObjects ( _
    cSelect As UInteger, _
    apUnkSelect As Object(), _
    dwFlags As UInteger _
) As Integer Implements ISelectionContainer.SelectObjects
int ISelectionContainer.SelectObjects(
    uint cSelect,
    Object[] apUnkSelect,
    uint dwFlags
)

参数

  • cSelect
    类型:System.UInt32
    数组的大小选定的对象。
  • apUnkSelect
    类型:array<System.Object[]
    要选择的对象数组。
  • dwFlags
    类型:System.UInt32
    如果此值为 true, ActivateObjects 在某些将执行对象。

返回值

类型:System.Int32
; 如果操作成功,则返回 S_OK

实现

ISelectionContainer.SelectObjects(UInt32, array<Object[], UInt32)

备注

如果某些选定的对象不是 null 而不是只读 SelectedObjectsChanged 事件将会激发。

.NET Framework 安全性

请参见

参考

SelectionContainer 类

Microsoft.VisualStudio.Shell 命名空间