共用方式為


SimpleEditorView.Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) Method

Definition

Executes the specified command.

public:
 virtual int Exec(Guid % guidCmdGroup, System::UInt32 id, System::UInt32 options, IntPtr pvaIn, IntPtr pvaOut);
public virtual int Exec (ref Guid guidCmdGroup, uint id, uint options, IntPtr pvaIn, IntPtr pvaOut);
abstract member Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
override this.Exec : Guid * uint32 * uint32 * nativeint * nativeint -> int
Public Overridable Function Exec (ByRef guidCmdGroup As Guid, id As UInteger, options As UInteger, pvaIn As IntPtr, pvaOut As IntPtr) As Integer

Parameters

guidCmdGroup
Guid

The GUID of the command group.

id
UInt32

The ID of the command.

options
UInt32

An OLECMDEXECOPT enumeration giving command options.

pvaIn
IntPtr

nativeint

Pointer to a VARIANTARG structure containing input arguments. Can be null.

pvaOut
IntPtr

nativeint

Pointer to a VARIANTARG structure containing command output. Can be null.

Returns

S_OK if the command is supported and it succeeded; Microsoft.VisualStudio.OLE.Interop.OleConstants.OLECMDERR_E_NOTSUPPORTED if the command is not supported; or an error code if the command failed.

Implements

Applies to