Compartir a través de


ReadOnlyObservableSet<T>.AddItem Method

Adds the specified element to a set.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaración
Protected Function AddItem ( _
    item As T _
) As Boolean
protected bool AddItem(
    T item
)

Parameters

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

Return Value

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

.NET Framework Security

See Also

Reference

ReadOnlyObservableSet<T> Class

Microsoft.VisualStudio.Shell Namespace