Compartir a través de


ReadOnlyObservableSet<T>.AddItem Method

Adds the specified element to a set.

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

Syntax

'Declaration
Protected Function AddItem ( _
    item As T _
) As Boolean
protected bool AddItem(
    T item
)
protected:
bool AddItem(
    T item
)
member AddItem : 
        item:'T -> bool
protected function AddItem(
    item : T
) : boolean

Parameters

  • item
    Type: T

    The element to add to the set.

Return Value

Type: 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