Metodo SelectionContainer.ISelectionContainer.CountObjects

Determina il numero di oggetti gli elementi di ALL o di SELECTED .

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

Sintassi

'Dichiarazione
Private Function CountObjects ( _
    dwFlags As UInteger, _
    <OutAttribute> ByRef pc As UInteger _
) As Integer Implements ISelectionContainer.CountObjects
int ISelectionContainer.CountObjects(
    uint dwFlags,
    out uint pc
)

Parametri

  • dwFlags
    Tipo: System.UInt32
    Utilizzare ALL per indicare tutti i membri e SELECTED per indicare solo quelli selezionati.
  • pc
    Tipo: System.UInt32%
    Un puntatore al numero di elementi, questo valore viene impostato dalla chiamata al metodo.

Valore restituito

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

Implementa

ISelectionContainer.CountObjects(UInt32, UInt32%)

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