DataViewSelectionMenuCommand Class
Provides the ability to determine the status of a shortcut menu command when multiple nodes are selected in Server Explorer for a specific data connection, and to invoke the command.
Inheritance Hierarchy
System.Object
System.ComponentModel.Design.MenuCommand
Microsoft.VisualStudio.Data.Framework.DataMenuCommand
Microsoft.VisualStudio.Data.Framework.DataViewMenuCommand
Microsoft.VisualStudio.Data.Framework.DataViewSelectionMenuCommand
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Class DataViewSelectionMenuCommand _
Inherits DataViewMenuCommand
public class DataViewSelectionMenuCommand : DataViewMenuCommand
public ref class DataViewSelectionMenuCommand : public DataViewMenuCommand
type DataViewSelectionMenuCommand =
class
inherit DataViewMenuCommand
end
public class DataViewSelectionMenuCommand extends DataViewMenuCommand
The DataViewSelectionMenuCommand type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataViewSelectionMenuCommand(CommandID, IVsDataViewHierarchy) | Initializes a new instance of the DataViewSelectionMenuCommand class with the command and the view hierarchy. | |
DataViewSelectionMenuCommand(CommandID, EventHandler, IVsDataViewHierarchy) | Initializes a new instance of the DataViewSelectionMenuCommand class with the command, an event, and the view hierarchy. | |
DataViewSelectionMenuCommand(CommandID, EventHandler, EventHandler, IVsDataViewHierarchy) | Initializes a new instance of the DataViewSelectionMenuCommand class with the command, events, and the view hierarchy. |
Top
Properties
Name | Description | |
---|---|---|
Checked | Gets or sets a value indicating whether this menu item is checked. (Inherited from MenuCommand.) | |
CommandID | Gets the CommandID associated with this menu command. (Inherited from MenuCommand.) | |
Enabled | Gets a value indicating whether this menu item is available. (Inherited from MenuCommand.) | |
ItemId | Gets the item ID. (Inherited from DataViewMenuCommand.) | |
OleStatus | Gets the OLE command status code for this menu item. (Inherited from MenuCommand.) | |
Properties | Gets the public properties associated with the MenuCommand. (Inherited from MenuCommand.) | |
Supported | Gets or sets a value indicating whether this menu item is supported. (Inherited from MenuCommand.) | |
Text | Retrieves the Text property of the menu command. (Inherited from DataMenuCommand.) | |
Visible | Gets or sets a value indicating whether this menu item is visible. (Inherited from MenuCommand.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invoke() | Invokes the menu command. (Inherited from DataMenuCommand.) | |
Invoke(Object) | Invokes the command with the specified arguments for each node in the selection corresponding to one data connection. (Overrides DataMenuCommand.Invoke(Object).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCommandChanged | Raises the CommandChanged event. (Inherited from MenuCommand.) | |
ToString | Returns a string representation of this menu command. (Inherited from MenuCommand.) | |
UpdateStatus | Updates the status of this command based on the common set of status values extracted from all the nodes in the node selection for a data connection. (Overrides DataMenuCommand.UpdateStatus().) |
Top
Events
Name | Description | |
---|---|---|
CommandChanged | Occurs when the menu command changes. (Inherited from MenuCommand.) |
Top
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.