共用方式為


IOleCommandTarget Interface

Enables the dispatching of commands between objects and containers. For more information, see IOleCommandTarget

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'宣告
<GuidAttribute("B722BCCB-4E68-101B-A2BC-00AA00404770")> _
<InterfaceTypeAttribute()> _
Public Interface IOleCommandTarget
[GuidAttribute("B722BCCB-4E68-101B-A2BC-00AA00404770")]
[InterfaceTypeAttribute()]
public interface IOleCommandTarget

The IOleCommandTarget type exposes the following members.

Methods

  Name Description
Public method Exec Executes the specified command.
Public method QueryStatus Queries the object for the status of one or more commands generated by user interface events.

Top

See Also

Reference

Microsoft.VisualStudio.OLE.Interop Namespace