Bagikan melalui


IAnnotationDictionary.Add<T> Method (T)

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

See Also

Reference

IAnnotationDictionary Interface

Add Overload

Microsoft.VisualStudio.SharePoint Namespace