使用在同级节点间的指定排序位置创建新的 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), _
    sortOrder As Integer _
) As IExplorerNode
IExplorerNode Add(
    string nodeTypeId,
    string text,
    IDictionary<Object, Object> annotations,
    int sortOrder
)
参数
- nodeTypeId
 类型:System.String
 要用于定义新节点行为的 IExplorerNodeType 的 ID。
- text
 类型:System.String
 要与新节点一起显示的文本。
- annotations
 类型:System.Collections.Generic.IDictionary<Object, Object>
 要添加到新节点的 Annotations 属性的对象的字典。
- sortOrder
 类型:System.Int32
 一个值,用于在同级节点间对当前节点进行排序。
返回值
类型:Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode
新的 IExplorerNode。
备注
有关使用 Annotations 属性的更多信息,请参见将自定义数据与 SharePoint 工具扩展相关联。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。