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

 

Sets cObjects with the number of items SELECTED or ALL items and populates array apUnkObjects with pointers to those objects.

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

private:
virtual int GetObjects(
	unsigned int dwFlags,
	unsigned int cObjects,
	array<Object^>^ apUnkObjects
) sealed = ISelectionContainer::GetObjects

Parameters

dwFlags
Type: System::UInt32

Use ALL to indicate all members and SELECTED to indicate only those selected.

cObjects
Type: System::UInt32

A pointer to the number of items, this value is set by the method call.

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

An array of size cObjects that contains pointers to the retrieved objects.

Return Value

Type: System::Int32

Returns S_OK if the operation is successful.

Throws an exception if dwFlags is not ALL or SELECTED.

Return to top
Show: