共用方式為


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

'宣告
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