共用方式為


OleMenuCommand.Invoke Method

Include Protected Members
Include Inherited Members

Executes the command.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Invoke() Invokes the command. (Inherited from MenuCommand.)
Public method Invoke(Object) Executes the command. (Overrides MenuCommand.Invoke(Object).)
Public method Invoke(Object, IntPtr) Executes the command.
Public method Invoke(Object, IntPtr, OLECMDEXECOPT) Executes the command with the specified parameters and execution options.

Top

See Also

Reference

OleMenuCommand Class

Microsoft.VisualStudio.Shell Namespace