Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds an object to the dictionary by using the Type of the object for the key.
Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Sub Add(Of T) ( _
    value As T _
)
void Add<T>(
    T value
)
Type Parameters
- T
 The type of the object to add. This is the key of the object in the dictionary.
Parameters
- value 
 Type: T- The object to add. 
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentException | An object with the same type already exists in the dictionary. | 
.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.