Metodo SelectionContainer.ISelectionContainer.GetObjects

Imposta cObjects con il numero di elementi SELECTED o elementi di ALL e popola la matrice apUnkObjects con i puntatori a tali oggetti.

Spazio dei nomi:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Sintassi

'Dichiarazione
Private Function GetObjects ( _
    dwFlags As UInteger, _
    cObjects As UInteger, _
    apUnkObjects As Object() _
) As Integer Implements ISelectionContainer.GetObjects
int ISelectionContainer.GetObjects(
    uint dwFlags,
    uint cObjects,
    Object[] apUnkObjects
)

Parametri

  • dwFlags
    Tipo: System.UInt32
    Utilizzare ALL per indicare tutti i membri e SELECTED per indicare solo quelli selezionati.
  • cObjects
    Tipo: System.UInt32
    Un puntatore al numero di elementi, questo valore viene impostato dalla chiamata al metodo.
  • apUnkObjects
    Tipo: array<System.Object[]
    una matrice di dimensione cObjects che contiene i puntatori agli oggetti recuperati.

Valore restituito

Tipo: System.Int32
Restituisce S_OK se l'operazione ha esito positivo.

Implementa

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

Note

genera un'eccezione se dwFlags non è ALL o SELECTED.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

SelectionContainer Classe

Spazio dei nomi Microsoft.VisualStudio.Shell