Partager via


SelectionContainer.ISelectionContainer.SelectObjects Method

Sets the collection of selectable 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

'Déclaration
Private Function SelectObjects ( _
    cSelect As UInteger, _
    apUnkSelect As Object(), _
    dwFlags As UInteger _
) As Integer Implements ISelectionContainer.SelectObjects
'Utilisation
Dim instance As SelectionContainer
Dim cSelect As UInteger
Dim apUnkSelect As Object()
Dim dwFlags As UInteger
Dim returnValue As Integer

returnValue = CType(instance, ISelectionContainer).SelectObjects(cSelect, _
    apUnkSelect, dwFlags)
int ISelectionContainer.SelectObjects(
    uint cSelect,
    Object[] apUnkSelect,
    uint dwFlags
)
private:
virtual int SelectObjects(
    unsigned int cSelect, 
    array<Object^>^ apUnkSelect, 
    unsigned int dwFlags
) sealed = ISelectionContainer::SelectObjects
private abstract SelectObjects : 
        cSelect:uint32 * 
        apUnkSelect:Object[] * 
        dwFlags:uint32 -> int 
private override SelectObjects : 
        cSelect:uint32 * 
        apUnkSelect:Object[] * 
        dwFlags:uint32 -> int 
JScript does not support explicit interface implementations.

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.

Return Value

Type: System.Int32
Returns S_OK if the operation is successful.

Implements

ISelectionContainer.SelectObjects(UInt32, array<Object[], UInt32)

Remarks

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

.NET Framework Security

See Also

Reference

SelectionContainer Class

SelectionContainer Members

Microsoft.VisualStudio.Shell Namespace