Udostępnij za pośrednictwem


Metoda ReadOnlyObservableSet<T>.AddItem —

Adds the specified element to a set.

Przestrzeń nazw:  Microsoft.VisualStudio.Shell
Zestaw:  Microsoft.VisualStudio.Shell.11.0 (w Microsoft.VisualStudio.Shell.11.0.dll)

Składnia

'Deklaracja
Protected Function AddItem ( _
    item As T _
) As Boolean
protected bool AddItem(
    T item
)

Parametry

  • item
    Typ: T
    The element to add to the set.

Wartość zwracana

Typ: System.Boolean
true if the element is added to the ReadOnlyObservableSet<T> object, or false if the element is already present.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ReadOnlyObservableSet<T> Klasa

Przestrzeń nazw Microsoft.VisualStudio.Shell