SelectionContainer::ISelectionContainer::SelectObjects Method (UInt32, array<Object^>^, UInt32)

 

Sets the collection of selectable objects.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

private:
virtual int SelectObjects(
	unsigned int cSelect,
	array<Object^>^ apUnkSelect,
	unsigned int dwFlags
) sealed = ISelectionContainer::SelectObjects

Parameters

cSelect
Type: System::UInt32

The size of the array of selected objects.

apUnkSelect
Type: array<System::Object^>^

The array of objects to be selected.

dwFlags
Type: System::UInt32

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

Return Value

Type: System::Int32

Returns S_OK if the operation is successful.

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

Return to top
Show: