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
)
參數
- nodeTypeId
型別:System.String
用於定義新節點行為之 IExplorerNodeType 的 ID。
- text
型別:System.String
隨新節點顯示的文字。
- annotations
型別:System.Collections.Generic.IDictionary<Object, Object>
要加入新節點之 Annotations 屬性的物件字典。
傳回值
型別:Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode
新的 IExplorerNode。
備註
如需使用 Annotations 屬性的詳細資訊,請參閱 讓自訂資料與 SharePoint 工具擴充功能產生關聯。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。