IAnnotationDictionary.Add<T> 方法 (T)

使用索引鍵之物件的 Type,將物件加入至字典。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
Sub Add(Of T) ( _
    value As T _
)
void Add<T>(
    T value
)

型別參數

  • T
    待加入物件的型別。這便是字典中物件的索引鍵。

參數

  • value
    型別:T
    要加入的物件。

例外狀況

例外狀況 條件
ArgumentException

具有相同型別的物件已經存在字典中。

.NET Framework 安全性

請參閱

參考

IAnnotationDictionary 介面

Add 多載

Microsoft.VisualStudio.SharePoint 命名空間