Compartilhar via


SelectionContainer.ISelectionContainer.GetObjects Method

Definition

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

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

Parameters

dwFlags
UInt32

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

cObjects
UInt32

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

apUnkObjects
Object[]

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

Returns

Returns S_OK if the operation is successful.

Implements

Remarks

Throws an exception if dwFlags is not ALL or SELECTED.

Applies to