IExplorerNodeTypeDefinition Interface
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 | |
---|---|---|
Annotations | Gets an instance IAnnotationDictionary to associate custom data with the object implementing the IAnnotatedObject interface. (Inherited from IAnnotatedObject.) | |
DefaultIcon | Gets or sets the default icon for nodes that are defined by this node type. | |
IsAlwaysLeaf | Gets a value that indicates whether nodes of this type have no child nodes. | |
Name | Gets the name associated with this node type. | |
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 | |
---|---|---|
NodeChildrenRequested | Occurs when an IExplorerNode requests child nodes. (Inherited from IExplorerNodeEvents.) | |
NodeDisposing | Occurs when an IExplorerNode is about to be disposed. (Inherited from IExplorerNodeEvents.) | |
NodeInitialized | Occurs when a new IExplorerNode is initialized. (Inherited from IExplorerNodeEvents.) | |
NodeMenuItemsRequested | Occurs when an IExplorerNode requests shortcut menu items. (Inherited from IExplorerNodeEvents.) | |
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.