Share via


IExplorerNodeCollection.Add Method (String, String, IDictionary<Object, Object>)

Creates a new IExplorerNode and adds it to the collection.

Namespace:  Microsoft.VisualStudio.SharePoint.Explorer
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
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
)

Parameters

  • nodeTypeId
    Type: String

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

  • text
    Type: String

    The text to display with the new node.

  • annotations
    Type: IDictionary<Object, Object>

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

Return Value

Type: Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNode
The new IExplorerNode.

Remarks

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

.NET Framework Security

See Also

Reference

IExplorerNodeCollection Interface

Add Overload

Microsoft.VisualStudio.SharePoint.Explorer Namespace