IExplorerNodeCollection.Add 方法

定义

重载

Add(String, String, IDictionary<Object,Object>)

创建一个新的 IExplorerNode,并将其添加到集合中。

Add(String, String, IDictionary<Object,Object>, Int32)

使用同级节点之间指定的排序位置创建新的 IExplorerNode

Add(String, String, IDictionary<Object,Object>)

创建一个新的 IExplorerNode,并将其添加到集合中。

public Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode Add (string nodeTypeId, string text, System.Collections.Generic.IDictionary<object,object> annotations);

参数

nodeTypeId
String

要用于定义新节点的行为的 IExplorerNodeType 的 ID。

text
String

要在新节点旁显示的文本。

annotations
IDictionary<Object,Object>

要添加到新节点的 Annotations 属性的对象的字典。

返回

IExplorerNode

新的 IExplorerNode

注解

有关使用属性的详细信息 Annotations ,请参阅将自定义数据与 SharePoint 工具扩展相关联

适用于

Add(String, String, IDictionary<Object,Object>, Int32)

使用同级节点之间指定的排序位置创建新的 IExplorerNode

public Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode Add (string nodeTypeId, string text, System.Collections.Generic.IDictionary<object,object> annotations, int sortOrder);

参数

nodeTypeId
String

要用于定义新节点的行为的 IExplorerNodeType 的 ID。

text
String

要在新节点旁显示的文本。

annotations
IDictionary<Object,Object>

要添加到新节点的 Annotations 属性的对象的字典。

sortOrder
Int32

用来对同级节点之间的当前节点排序的值。

返回

IExplorerNode

新的 IExplorerNode

注解

有关使用属性的详细信息 Annotations ,请参阅将自定义数据与 SharePoint 工具扩展相关联

适用于