Compartir a través de


Package.IOleCommandTarget.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) Method

Definition

Executes a specified command or displays help for a command.

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid % guidGroup, System::UInt32 nCmdId, System::UInt32 nCmdExcept, IntPtr pIn, IntPtr vOut) = Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget::Exec;
int IOleCommandTarget.Exec (ref Guid guidGroup, uint nCmdId, uint nCmdExcept, IntPtr pIn, IntPtr vOut);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
Function Exec (ByRef guidGroup As Guid, nCmdId As UInteger, nCmdExcept As UInteger, pIn As IntPtr, vOut As IntPtr) As Integer Implements IOleCommandTarget.Exec

Parameters

guidGroup
Guid

The GUID specifying the command group to which the command belongs.

nCmdId
UInt32

The ID of the command.

nCmdExcept
UInt32

A pointer to an OLECMDEXECOPT structure specifying how the command should be executed.

pIn
IntPtr

nativeint

A pointer to a VARIANTARG structure containing input arguments. Can be null.

vOut
IntPtr

nativeint

A pointer to a VARIANTARG structure to receive command output. Can be null.

Returns

This method returns S_OK if it succeeds, otherwise an error code. If no instance of IOleCommandTarget can be found, returns OLECMDERR_E_NOTSUPPORTED.

Implements

Applies to