SelectionContainer.ISelectionContainer.SelectObjects Method

Definition

Sets the collection of selectable objects.

 virtual int Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.SelectObjects(System::UInt32 cSelect, cli::array <System::Object ^> ^ apUnkSelect, System::UInt32 dwFlags) = Microsoft::VisualStudio::Shell::Interop::ISelectionContainer::SelectObjects;
 virtual int Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.SelectObjects(unsigned int cSelect, Platform::Array <Platform::Object ^> ^ apUnkSelect, unsigned int dwFlags) = Microsoft::VisualStudio::Shell::Interop::ISelectionContainer::SelectObjects;
int Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.SelectObjects(unsigned int cSelect, std::Array <winrt::Windows::Foundation::IInspectable const &> const & apUnkSelect, unsigned int dwFlags);
int ISelectionContainer.SelectObjects (uint cSelect, object[] apUnkSelect, uint dwFlags);
abstract member Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.SelectObjects : uint32 * obj[] * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.SelectObjects : uint32 * obj[] * uint32 -> int
Function SelectObjects (cSelect As UInteger, apUnkSelect As Object(), dwFlags As UInteger) As Integer Implements ISelectionContainer.SelectObjects

Parameters

cSelect
UInt32

The size of the array of selected objects.

apUnkSelect
Object[]

The array of objects to be selected.

dwFlags
UInt32

If this value is true, ActivateObjects will be performed on the array of objects.

Returns

Returns S_OK if the operation is successful.

Implements

Remarks

If the array of selected objects is not empty and not read only the SelectedObjectsChanged event will be fired.

Applies to