Partager via


IExplorerNodeTypeDefinition Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines the behavior of a new type of node in the SharePoint Connections hierarchy of nodes in Server Explorer.

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

Syntax

'Declaration
Public Interface IExplorerNodeTypeDefinition _
    Inherits IAnnotatedObject, IExplorerNodeEvents
public interface IExplorerNodeTypeDefinition : IAnnotatedObject, 
    IExplorerNodeEvents

The IExplorerNodeTypeDefinition type exposes the following members.

Properties

  Name Description
Public property Annotations Gets an instance IAnnotationDictionary to associate custom data with the object implementing the IAnnotatedObject interface. (Inherited from IAnnotatedObject.)
Public property DefaultIcon Gets or sets the default icon for nodes that are defined by this node type.
Public property IsAlwaysLeaf Gets a value that indicates whether nodes of this type have no child nodes.
Public property Name Gets the name associated with this node type.
Public property NodeType Gets a Boolean value indicating whether nodes of this type do not usually have child nodes. This property is superseded if extensions to the IExplorerNodeType are present.

Top

Events

  Name Description
Public event NodeChildrenRequested Occurs when an IExplorerNode requests child nodes. (Inherited from IExplorerNodeEvents.)
Public event NodeDisposing Occurs when an IExplorerNode is about to be disposed. (Inherited from IExplorerNodeEvents.)
Public event NodeInitialized Occurs when a new IExplorerNode is initialized. (Inherited from IExplorerNodeEvents.)
Public event NodeMenuItemsRequested Occurs when an IExplorerNode requests shortcut menu items. (Inherited from IExplorerNodeEvents.)
Public event NodePropertiesRequested Occurs when an IExplorerNode requests properties. (Inherited from IExplorerNodeEvents.)

Top

Remarks

To create a new type of node, implement the IExplorerNodeTypeProvider interface. In your implementation of the InitializeType method, you can use properties and events of the IExplorerNodeTypeDefinition parameter to define the behavior of your new node type. For more information, see How to: Add a Custom SharePoint Node to Server Explorer.

Each type of node is initialized by exactly one IExplorerNodeTypeDefinition object.

See Also

Reference

Microsoft.VisualStudio.SharePoint.Explorer Namespace