共用方式為


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: 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