Share via


DataViewCommandHandler Class

Definition

Provides the ability to implement commands, specifically custom commands, for nodes in a data view.

public ref class DataViewCommandHandler : Microsoft::VisualStudio::Data::ObjectWithSite
public class DataViewCommandHandler : Microsoft.VisualStudio.Data.ObjectWithSite
type DataViewCommandHandler = class
    inherit ObjectWithSite
Public Class DataViewCommandHandler
Inherits ObjectWithSite
Inheritance
DataViewCommandHandler

Constructors

DataViewCommandHandler()

Class constructor. Instantiates a new instance of the DataViewCommandHandler class.

Properties

DataViewHierarchyAccessor

Retrieves a DataViewHierarchyAccessor object instance, which provides managed accessors to the IVsHierarchy object that implements the data view hierarchy.

Site

Retrieves or sets the object site.

(Inherited from ObjectWithSite)

Methods

ExecuteCommand(Int32, OleCommand, OleCommandExecutionOption, Object)

Causes the specified command to execute.

ExecuteCommand(Int32[], OleCommand, OleCommandExecutionOption, Object)

Causes the specified command to execute on multiple items.

GetCommandStatus(Int32[], OleCommand, OleCommandTextType, OleCommandStatus)

Retrieves the status of the commands executing on the specified items.

OnSiteChanged(EventArgs)

Raises the SiteChanged event.

(Inherited from ObjectWithSite)

Events

SiteChanged

Event that is raised when the Site property is changed.

(Inherited from ObjectWithSite)

Explicit Interface Implementations

IObjectWithSite.GetSite(Guid, IntPtr)

Retrieves the last site set using the IObjectWithSite.SetSite(Object) method. In cases where there is no known site, the object returns an exception.

(Inherited from ObjectWithSite)
IObjectWithSite.SetSite(Object)

Provides the site's pointer to the site object.

(Inherited from ObjectWithSite)

Applies to