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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.