OleMenuCommandService Methods

Include Protected Members
Include Inherited Members

The OleMenuCommandService type exposes the following members.

Methods

  Name Description
Public method AddCommand Adds a command handler to the menu command service. (Inherited from MenuCommandService.)
Public method AddVerb Adds a verb to the verb table of the MenuCommandService. (Inherited from MenuCommandService.)
Public method Dispose() Releases all resources used by the MenuCommandService. (Inherited from MenuCommandService.)
Protected method Dispose(Boolean) Releases all resources used by the MenuCommandService. (Inherited from MenuCommandService.)
Protected method EnsureVerbs Ensures that the verb list has been created. (Inherited from MenuCommandService.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindCommand(CommandID) Searches for the MenuCommand associated with the given command ID. (Inherited from MenuCommandService.)
Protected method FindCommand(Guid, Int32) Searches for the MenuCommand associated with the given command. (Inherited from MenuCommandService.)
Protected method GetCommandList Gets the command list for a given GUID. (Inherited from MenuCommandService.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetService Gets a reference to the requested service. (Inherited from MenuCommandService.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GlobalInvoke(CommandID) Can be used to invoke any command within Visual Studio. (Overrides MenuCommandService.GlobalInvoke(CommandID).)
Public method GlobalInvoke(CommandID, Object) Can be used to invoke any command within Visual Studio. (Overrides MenuCommandService.GlobalInvoke(CommandID, Object).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCommandsChanged Called by a menu command when its status has changed. (Overrides MenuCommandService.OnCommandsChanged(MenuCommandsChangedEventArgs).)
Public method RemoveCommand Removes the given menu command from the document. (Inherited from MenuCommandService.)
Public method RemoveVerb Removes the given verb from the document. (Inherited from MenuCommandService.)
Public method ShowContextMenu Shows the shortcut menu with the given command ID at the given location. (Overrides MenuCommandService.ShowContextMenu(CommandID, Int32, Int32).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IOleCommandTarget.Exec Infrastructure. Executes the selected command.
Explicit interface implemetationPrivate method IOleCommandTarget.QueryStatus Infrastructure. Sets command status.

Top

See Also

Reference

OleMenuCommandService Class

Microsoft.VisualStudio.Shell Namespace