Compartir a través de


DataViewHierarchyAccessor Class

Definition

Represents a set of properties and methods that interact with the data view hierarchy implementation of the IVsUIHierarchy interface.

public ref class DataViewHierarchyAccessor
public class DataViewHierarchyAccessor
type DataViewHierarchyAccessor = class
Public Class DataViewHierarchyAccessor
Inheritance
DataViewHierarchyAccessor

Constructors

DataViewHierarchyAccessor(IVsUIHierarchy)

Class constructor. Initializes a new instance of the DataViewHierarchyAccessor class with an IVsUIHierarchy object instance.

Properties

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.

Methods

ActivateDocumentIfOpen(String, Guid)

Activates a document with the specified moniker and logical view, if the document is open.

ActivateDocumentIfOpen(String)

Activates a document with the specified moniker, 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(Int32)

Drops an existing node that represents an object from the data source from 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.

ExecuteCommand(Int32, OleCommand)

Executes an OLE command without arguments directly on the data view hierarchy.

GetChildSelectionTypes(Int32)

Retrieves an array of the object types enumerated when a parent node is expanded to show its child nodes.

GetChildStaticNodeIds(Int32)

Retrieves an array of the static node IDs that are children of the specified item ID.

GetCommandStatus(Int32, OleCommand, OleCommandTextType)

Retrieves the status of an OLE command with a request for a particular type of command text.

GetCommandStatus(Int32, OleCommand)

Retrieves the status of an OLE command.

GetItemIdFromNodePath(String)

Infers the item ID of a node in the data view hierarchy given a path to the node.

GetNodeId(Int32)

Retrieves the node ID as specified in the data view support XML from an item ID.

GetNodeName(Int32)

Retrieves the display name of a specified node.

GetNodePath(Int32)

Infers a node path from the location of a node in the data view hierarchy.

GetObjectIdentifier(Int32)

Retrieves the data-source-specific identifier of the object associated with the node matching the specified item ID.

GetObjectProperty(Int32, String)

Retrieves a property of a data object associated with the node matching the specified item ID.

GetObjectType(Int32)

Retrieves the type of the data object associated with the node matching the specified item ID.

GetProperty(Int32, Int32)

Retrieves a hierarchy property.

GetSelectedItems()

Retrieves an integer array representing item IDs for currently selected nodes in the tree.

IsDocumentOpen(String, Guid)

Retrieves a Boolean value that indicates whether a document with a particular moniker and logical view is currently open.

IsDocumentOpen(String)

Retrieves a Boolean value that indicates whether a document with a particular moniker is currently open.

SetNodePath(Int32, String)

Sets the node path for a node identified by a particular item ID.

SetProperty(Int32, Int32, Object)

Sets a specified hierarchy property.

Applies to