IExplorerNodeTypeProvider.InitializeType(IExplorerNodeTypeDefinition) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes the new node type.
public:
void InitializeType(Microsoft::VisualStudio::SharePoint::Explorer::IExplorerNodeTypeDefinition ^ typeDefinition);
public void InitializeType (Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNodeTypeDefinition typeDefinition);
abstract member InitializeType : Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNodeTypeDefinition -> unit
Public Sub InitializeType (typeDefinition As IExplorerNodeTypeDefinition)
Parameters
- typeDefinition
- IExplorerNodeTypeDefinition
The definition of the new node type.
Remarks
You can handle events and set properties of the typeDefinition
parameter to define the behavior of the node. For example, you can specify the icon or text for the node, and you can handle the following events:
NodeChildrenRequested: Handle this event to add new child nodes to the node. For more information, see How to: Add a Custom SharePoint Node to Server Explorer.
NodeMenuItemsRequested: Handle this event to add a custom shortcut menu item to the node.
NodePropertiesRequested: Handle this event to add custom properties to the node. The properties appear in the Properties window when the node is selected.
This method is called once for each IExplorerNodeTypeProvider implementation.