Include Protected Members
Include Inherited Members
A parent node that has zero or more child nodes, each of which may itself be a hierarchy. This is the base class for hierarchy elements such as FileNode and FolderNode.
The HierarchyNode type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
HierarchyNode | Overloaded. Overloaded HierarchyNode constructor. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
AddChild | Adds a hierarchy node as a child node. |
![]() |
AddItemToHierarchy | Adds a new item to the hierarchy. |
![]() |
AddNewFolder | Adds a new folder to the project hierarchy. |
![]() |
AdviseHierarchyEvents | Establishes client notification of hierarchy events. |
![]() |
AfterSaveItemAs | Saves an item after the SaveAs dialog box has been processed. |
![]() |
AllowPasteCommand | Specifies whether a node can be pasted. |
![]() |
CanDeleteItem | Checks whether the file can be deleted from storage or removed from the project. |
![]() |
CanShowDefaultIcon | Checks whether this node can be displayed with the default item icon. |
![]() |
Close | Closes and cleans up a hierarchy after the environment determines that it is no longer used. |
![]() |
CloseDocumentWindow | Closes an open document window for a specific node. |
![]() |
CopyToClipboard | Copies a node to the clipboard. |
![]() |
CreatePropertiesObject | Defines the properties attached to this node. |
![]() |
CutToClipboard | Cuts a node and puts it on the clipboard. |
![]() |
DeleteFromStorage | Deletes the file at the specified path from storage. |
![]() |
DeleteItem | Handles the deletion or removal of a hierarchy item. |
![]() |
DisableCmdInCurrentMode | Disables commands when Visual Studio is in run or break mode. |
![]() |
DisableCommandOnNodesThatDoNotSupportMultiSelection | Specifies commands for which multi-select does not work and should be disabled. |
![]() |
DisplayContextMenu | Shows the shortcut menu for the specified nodes. |
![]() |
DoDefaultAction | Performs the default event in the hierarchy. This is typically called when a user either presses ENTER or double-clicks the item. |
![]() |
DragEnter | Called when the mouse drags an item over a new hierarchy or hierarchy window. |
![]() |
DragLeave | Called when one or more items are dragged out of the hierarchy or hierarchy window, or when the drag-and-drop operation is canceled or completed. |
![]() |
DragOver | Called when one or more items are dragged over the target hierarchy or hierarchy window. |
![]() |
Drop | Called when one or more items are dropped into the target hierarchy or hierarchy window when the mouse button is released. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
ExcludeFromProject | Removes this item from the project, but does not delete it from disk. |
![]() |
Exec | Executes the specified non-UI command or displays help for a command. |
![]() |
ExecCommand | Executes the specified command on the specified item in a UI hierarchy window, or on the hierarchy itself. |
![]() |
ExecCommandIndependentOfSelection | Executes commands that do not depend on what is selected. |
![]() |
ExecCommandOnNode | Handles execution of a given command on this node. |
![]() |
ExecCommandThatDependsOnSelectedNodes | Handles execution of a command that is executed on a set of nodes. |
![]() |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
FindChildByProjectElement | Finds a non-virtual hierarchy element (a node with a build item) by its project element. |
![]() |
GetAddFileFlags | Gets flags that specify how files are added to a project. |
![]() |
GetAutomationObject | Gets an automation object for the current node. |
![]() |
GetCanonicalName | Overloaded. Gets the document moniker for the current node. In most cases, the moniker is the fully-qualified name of the document. |
![]() |
GetDocumentManager | Gets the document manager for this node. |
![]() |
GetDragTargetHandlerNode | Gets the node that should handle drag-and-drop operations. |
![]() |
GetDropInfo | Returns information about one or more of the items being dragged. |
![]() |
GetEditLabel | Gets a caption value for the editable node. |
![]() |
GetGuidProperty | Overloaded. Gets the GUID value of the hierarchy node. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetIconHandle | Gets the icon handle. |
![]() |
GetMkDocument | Gets the name of the node. |
![]() |
GetNestedHierarchy | When overridden in a derived class, gets the nested hierarchy element that is specified by the item ID. |
![]() |
GetProperty | Overloaded. Gets properties of a given node or of the hierarchy. |
![]() |
GetQueryAddFileFlags | Sets the flags to be used to add the specified set of files. |
![]() |
GetQueryRemoveFileFlags | Sets the flags to be used to removed the specified files. |
![]() |
GetRelationalName | Gets the relational name. |
![]() |
GetRelationNameExtension | Gets the extension that is associated with a relational name. |
![]() |
GetRemoveFileFlags | Gets flags that specify how files are added to a project. |
![]() |
GetSccFiles | Provides a list of files and their associated flags for source code control. |
![]() |
GetSccSpecialFiles | Provides a list of special files and their associated flags for source code control. |
![]() |
GetService | Gets the service of the specified type, if it is available. |
![]() |
GetSite | Gets the service provider from which to access the services. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
IgnoreItemFileChanges | Overloaded. Specifies whether a file change should be ignored. |
![]() |
InternalExecCommand | The main entry point for command execution. It is called from the IVsUIHierarchy and IOleCommandTarget execution methods. |
![]() |
IsItemDirty | Determines whether the supplied item has changed. |
![]() |
IsItemReloadable | Overloaded. Specifies whether an item can be reloaded. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnBeforeDropNotify | Notifies the source hierarchy that information dragged from it is about to be dropped on a target. This method is called immediately after the mouse button is released on a drop. |
![]() |
OnDropNotify | Notifies clients that the dragged item was dropped. |
![]() |
OnInvalidateItems | Notifies clients when changes are made to the item inventory of a hierarchy. |
![]() |
OnItemAdded | Notifies clients when an item is added to the hierarchy. |
![]() |
OnItemDeleted | Notifies clients when an item is deleted from the hierarchy. |
![]() |
OnItemsAppended | Notifies clients when items are appended to the end of the hierarchy. |
![]() |
OnPropertyChanged | Notifies clients when one or more properties of an item have changed. |
![]() |
ParseCanonicalName | Returns the identifier of the hierarchy item, given its canonical name. |
![]() |
PasteFromClipboard | Pastes an item from the clipboard. |
![]() |
PrepareSelectedNodesForClipBoard | Prepares selected nodes for the clipboard. |
![]() |
QueryClose | Determines whether the given hierarchy can be closed. |
![]() |
QueryDeleteItem | Called by the environment to determine whether the hierarchy supports item deletion, item removal, or both. |
![]() |
QueryStatus | Queries the object for the status of one or more commands that are generated by user interface events. |
![]() |
QueryStatusCommand | Queries the object for the command status. |
![]() |
QueryStatusCommandFromOleCommandTarget | Handles menus that originate from IOleCommandTarget. |
![]() |
QueryStatusOnNode | Handles command status on a node. |
![]() |
QueryStatusSelection | Queries for the command status on the selected nodes. |
![]() |
QueryStatusSelectionOnNodes | Queries the selected nodes for the command status. |
![]() |
ReDraw | Redraws the node. |
![]() |
RegisterClipboardNotifications | Registers and un-registers clipboard events for the Solution Explorer. |
![]() |
ReloadItem | Overloaded. Reloads an item. |
![]() |
Remove | Removes items from the hierarchy. |
![]() |
RemoveChild | Removes a child node. |
![]() |
SaveItem | Saves the hierarchy item to disk. |
![]() |
SetEditLabel | Overloaded. Sets a caption value for the editable node. |
![]() |
SetGuidProperty | Overloaded. Sets properties whose values are GUIDs. |
![]() |
SetProperty | Overloaded. Sets properties of a specific node, or of the hierarchy. |
![]() |
SetSite | Sets the service provider from which to access the services. |
![]() |
ShowContextMenu | Shows the specified shortcut menu at the specified location. |
![]() |
ShowInDesigner | Handles the Show in Designer command. |
![]() |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
![]() |
UnadviseHierarchyEvents | Disables client notification of hierarchy events. |
![]() |
Unused0 | Adds new methods without recompiling or breaking binary compatibility. |
![]() |
Unused1 | Adds new methods without recompiling or breaking binary compatibility. |
![]() |
Unused2 | Adds new methods without recompiling or breaking binary compatibility. |
![]() |
Unused3 | Adds new methods without recompiling or breaking binary compatibility. |
![]() |
Unused4 | Adds new methods without recompiling or breaking binary compatibility. |
![]() |
UpdateSccStateIcons | Redraws the source code control state icons of the node. |
Top
Fields
| Name | Description | |
|---|---|---|
![]() ![]() |
NoImage | The constant for a missing image. |
![]() ![]() |
SolutionExplorer | The GUID of the Solution Explorer. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
CanExecuteCommand | Checks whether a node can execute a command if it is in a selection. |
![]() |
Caption | Gets the caption of the hierarchy node. |
![]() |
DocCookie | Gets or sets the ID of the associated file. |
![]() |
ExcludeNodeFromScc | Gets or sets whether a node should be excluded from source code control. |
![]() |
FirstChild | Gets or sets the first child hierarchy node. |
![]() |
HasDesigner | Gets or sets whether the hierarchy node has a designer associated with it. |
![]() |
HasParentNodeNameRelation | Defines whether a node has a name relation to its parent node. |
![]() |
ID | Gets the hierarchy node ID. |
![]() |
ImageIndex | Gets the index of the associated image. |
![]() |
IsExpanded | Gets or sets whether the hierarchy node is in the expanded state. |
![]() |
ItemNode | Gets or sets the associated project element node, which represents the build item. |
![]() |
ItemsDraggedOrCutOrCopied | Gets the list of nodes that are selected for a drag, cut, or copy operation. |
![]() |
ItemTypeGuid | Gets the GUID of the item type of the node. |
![]() |
LastChild | Gets and sets the last child node. |
![]() |
MenuCommandId | Gets the menu command ID that is associated with the node. |
![]() |
NameRelationSeparator | Gets the name relation separator. |
![]() |
NextSibling | Gets or sets the next sibling node. |
![]() |
NodeProperties | Gets and sets the node properties of this node. |
![]() |
OleServiceProvider | Gets the OLE service provider for this node. |
![]() |
Parent | Gets or sets the parent node of this element. |
![]() |
PreviousSibling | Gets or sets the node that immediately precedes this hierarchy node element. |
![]() |
ProjectMgr | Gets or sets the root element for this hierarchy node. |
![]() |
SortPriority | Gets the default sort priority of this node. |
![]() |
SourceDraggedOrCutOrCopied | Gets and sets whether there are items to be dragged, cut, or copied. |
![]() |
StateIconIndex | Gets the source code control state icon for a file. |
![]() |
Url | Gets the absolute path for this node. |
![]() |
VirtualNodeName | The name of a virtual node. |
Top
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)