共用方式為


IExplorerNodeCollection.Add 方法 (String, String, IDictionary<Object, Object>)

建立新的 IExplorerNode,並將其加入至集合。

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

語法

'宣告
Function Add ( _
    nodeTypeId As String, _
    text As String, _
    annotations As IDictionary(Of Object, Object) _
) As IExplorerNode
IExplorerNode Add(
    string nodeTypeId,
    string text,
    IDictionary<Object, Object> annotations
)

參數

傳回值

型別:Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode
新的 IExplorerNode

備註

如需使用 Annotations 屬性的詳細資訊,請參閱 讓自訂資料與 SharePoint 工具擴充功能產生關聯

.NET Framework 安全性

請參閱

參考

IExplorerNodeCollection 介面

Add 多載

Microsoft.VisualStudio.SharePoint.Explorer 命名空間