Share via


IExplorerNodeCollection.Add Method

Definition

Overloads

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

Creates a new IExplorerNode and adds it to the collection.

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

Creates a new IExplorerNode with the specified sort position among sibling nodes.

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

Creates a new IExplorerNode and adds it to the collection.

public:
 Microsoft::VisualStudio::SharePoint::Explorer::IExplorerNode ^ Add(System::String ^ nodeTypeId, System::String ^ text, System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ annotations);
public Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode Add (string nodeTypeId, string text, System.Collections.Generic.IDictionary<object,object> annotations);
abstract member Add : string * string * System.Collections.Generic.IDictionary<obj, obj> -> Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode
Public Function Add (nodeTypeId As String, text As String, annotations As IDictionary(Of Object, Object)) As IExplorerNode

Parameters

nodeTypeId
String

The ID of the IExplorerNodeType to use to define the behavior of the new node.

text
String

The text to display with the new node.

annotations
IDictionary<Object,Object>

A dictionary of objects to be added to the Annotations property of the new node.

Returns

The new IExplorerNode.

Remarks

For more information about using the Annotations property, see Associating Custom Data with SharePoint Tools Extensions.

Applies to

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

Creates a new IExplorerNode with the specified sort position among sibling nodes.

public:
 Microsoft::VisualStudio::SharePoint::Explorer::IExplorerNode ^ Add(System::String ^ nodeTypeId, System::String ^ text, System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ annotations, int sortOrder);
public Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode Add (string nodeTypeId, string text, System.Collections.Generic.IDictionary<object,object> annotations, int sortOrder);
abstract member Add : string * string * System.Collections.Generic.IDictionary<obj, obj> * int -> Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode
Public Function Add (nodeTypeId As String, text As String, annotations As IDictionary(Of Object, Object), sortOrder As Integer) As IExplorerNode

Parameters

nodeTypeId
String

The ID of the IExplorerNodeType to use to define the behavior of the new node.

text
String

The text to display with the new node.

annotations
IDictionary<Object,Object>

A dictionary of objects to be added to the Annotations property of the new node.

sortOrder
Int32

A value that is used to sort the current node among sibling nodes.

Returns

The new IExplorerNode.

Remarks

For more information about using the Annotations property, see Associating Custom Data with SharePoint Tools Extensions.

Applies to