DataViewHierarchyAccessor Class
Represents a set of properties and methods that interact with the data view hierarchy implementation of the IVsUIHierarchy interface.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Data.DataViewHierarchyAccessor
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
Public Class DataViewHierarchyAccessor
public class DataViewHierarchyAccessor
public ref class DataViewHierarchyAccessor
type DataViewHierarchyAccessor = class end
public class DataViewHierarchyAccessor
The DataViewHierarchyAccessor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataViewHierarchyAccessor | Class constructor. Initializes a new instance of the DataViewHierarchyAccessor class with an IVsUIHierarchy object instance. |
Top
Properties
Name | Description | |
---|---|---|
Connection | Retrieves a DataConnection object instance representing the data connection pertaining to the data view hierarchy. | |
Hierarchy | Retrieves an IVsUIHierarchy object instance representing the current hierarchy view. | |
SelectedDataView | Retrieves a string representing the currently selected data view. | |
ServiceProvider | Retrieves the Visual Studio global service provider being used by the data view hierarchy. |
Top
Methods
Name | Description | |
---|---|---|
ActivateDocumentIfOpen(String) | Activates a document with the specified moniker, if the document is open. | |
ActivateDocumentIfOpen(String, Guid) | Activates a document with the specified moniker and logical view, if the document is open. | |
CreateObjectNode | Creates a new node in the data view hierarchy, but one without context and that is not placed anywhere in the hierarchy tree. | |
DropObjectNode | Drops an existing node that represents an object from the data source from the data view hierarchy. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
ExecuteCommand(Int32, OleCommand) | Executes an OLE command without arguments directly on the data view hierarchy. | |
ExecuteCommand(Int32, OleCommand, Object) | Executes an OLE command on the data view hierarchy with arguments. | |
ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object) | Executes an OLE command directly on the data view hierarchy, with a specific execution option and arguments. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChildSelectionTypes | Retrieves an array of the object types enumerated when a parent node is expanded to show its child nodes. | |
GetChildStaticNodeIds | Retrieves an array of the static node IDs that are children of the specified item ID. | |
GetCommandStatus(Int32, OleCommand) | Retrieves the status of an OLE command. | |
GetCommandStatus(Int32, OleCommand, OleCommandTextType) | Retrieves the status of an OLE command with a request for a particular type of command text. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetItemIdFromNodePath | Infers the item ID of a node in the data view hierarchy given a path to the node. | |
GetNodeId | Retrieves the node ID as specified in the data view support XML from an item ID. | |
GetNodeName | Retrieves the display name of a specified node. | |
GetNodePath | Infers a node path from the location of a node in the data view hierarchy. | |
GetObjectIdentifier | Retrieves the data-source-specific identifier of the object associated with the node matching the specified item ID. | |
GetObjectProperty | Retrieves a property of a data object associated with the node matching the specified item ID. | |
GetObjectType | Retrieves the type of the data object associated with the node matching the specified item ID. | |
GetProperty | Retrieves a hierarchy property. | |
GetSelectedItems | Retrieves an integer array representing item IDs for currently selected nodes in the tree. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDocumentOpen(String) | Retrieves a Boolean value that indicates whether a document with a particular moniker is currently open. | |
IsDocumentOpen(String, Guid) | Retrieves a Boolean value that indicates whether a document with a particular moniker and logical view is currently open. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetNodePath | Sets the node path for a node identified by a particular item ID. | |
SetProperty | Sets a specified hierarchy property. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
Use this class to make communicating with the data view hierarchy object from managed code simpler. Using this class is preferred over talking directly to the IVsHierarchy or IVsUIHierarchy interfaces.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.