SelectionContainer.ISelectionContainer.GetObjects Method
Sets cObjects with the number of items SELECTED or ALL items and populates array apUnkObjects with pointers to those objects.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
‘선언
Private Function GetObjects ( _
dwFlags As UInteger, _
cObjects As UInteger, _
apUnkObjects As Object() _
) As Integer Implements ISelectionContainer.GetObjects
‘사용 방법
Dim instance As SelectionContainer
Dim dwFlags As UInteger
Dim cObjects As UInteger
Dim apUnkObjects As Object()
Dim returnValue As Integer
returnValue = CType(instance, ISelectionContainer).GetObjects(dwFlags, _
cObjects, apUnkObjects)
int ISelectionContainer.GetObjects(
uint dwFlags,
uint cObjects,
Object[] apUnkObjects
)
private:
virtual int GetObjects(
unsigned int dwFlags,
unsigned int cObjects,
array<Object^>^ apUnkObjects
) sealed = ISelectionContainer::GetObjects
private abstract GetObjects :
dwFlags:uint32 *
cObjects:uint32 *
apUnkObjects:Object[] -> int
private override GetObjects :
dwFlags:uint32 *
cObjects:uint32 *
apUnkObjects:Object[] -> int
JScript does not support explicit interface implementations.
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.
Implements
ISelectionContainer.GetObjects(UInt32, UInt32, array<Object[])
Remarks
Throws an exception if dwFlags is not ALL or SELECTED.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.