DataViewMenuCommand Class

Represents a base implementation for menu commands offered by high-level or shortcut menus as part of a data view hierarchy.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

public class DataViewMenuCommand : DataMenuCommand

The DataViewMenuCommand type exposes the following members.

  NameDescription
Public methodDataViewMenuCommand(Int32, CommandID)Initializes a new instance of the DataViewMenuCommand class, specifying the item ID and command identifier.
Public methodDataViewMenuCommand(Int32, CommandID, EventHandler)Initializes a new instance of the DataMenuCommand class, specifying the item ID, command identifier, and event.
Public methodDataViewMenuCommand(Int32, CommandID, EventHandler, EventHandler)Initializes a new instance of the DataMenuCommand class, specifying the item ID, command identifier, and events.
Top

  NameDescription
Public propertyCheckedGets or sets a value indicating whether this menu item is checked. (Inherited from MenuCommand.)
Public propertyCommandIDGets the CommandID associated with this menu command. (Inherited from MenuCommand.)
Public propertyEnabledGets a value indicating whether this menu item is available. (Inherited from MenuCommand.)
Public propertyItemIdGets the item ID.
Public propertyOleStatusGets the OLE command status code for this menu item. (Inherited from MenuCommand.)
Public propertyPropertiesGets the public properties associated with the MenuCommand. (Inherited from MenuCommand.)
Public propertySupportedGets or sets a value indicating whether this menu item is supported. (Inherited from MenuCommand.)
Public propertyTextRetrieves the Text property of the menu command. (Inherited from DataMenuCommand.)
Public propertyVisibleGets or sets a value indicating whether this menu item is visible. (Inherited from MenuCommand.)
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInvoke()Invokes the menu command. (Inherited from DataMenuCommand.)
Public methodInvoke(Object)Invokes the menu command with the given parameter. (Inherited from DataMenuCommand.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnCommandChangedRaises the CommandChanged event. (Inherited from MenuCommand.)
Public methodToStringReturns a string representation of this menu command. (Inherited from MenuCommand.)
Public methodUpdateStatusUpdates the status of the command and raises the appropriate event. (Inherited from DataMenuCommand.)
Top

  NameDescription
Public eventCommandChangedOccurs when the menu command changes. (Inherited from MenuCommand.)
Top

This class allows you to attach an ItemId to a given menu command.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft