IAnnotationDictionary.Add<T> Method (T)
[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: TThe 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.