SelectionContainer.ISelectionContainer.GetObjects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.