Executes the specified command.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function Exec ( _
ByRef guidCmdGroup As Guid, _
id As UInteger, _
options As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer
'使用
Dim instance As SimpleEditorView
Dim guidCmdGroup As Guid
Dim id As UInteger
Dim options As UInteger
Dim pvaIn As IntPtr
Dim pvaOut As IntPtr
Dim returnValue As Integer
returnValue = instance.Exec(guidCmdGroup, _
id, options, pvaIn, pvaOut)
public virtual int Exec(
ref Guid guidCmdGroup,
uint id,
uint options,
IntPtr pvaIn,
IntPtr pvaOut
)
public:
virtual int Exec(
Guid% guidCmdGroup,
unsigned int id,
unsigned int options,
IntPtr pvaIn,
IntPtr pvaOut
)
public function Exec(
guidCmdGroup : Guid,
id : uint,
options : uint,
pvaIn : IntPtr,
pvaOut : IntPtr
) : int
Parameters
guidCmdGroup
Type: System.Guid%The GUID of the command group.
id
Type: System.UInt32The ID of the command.
options
Type: System.UInt32An [T:Microsoft.VisualStudio.OLE.Interop. OLECMDEXECOPT] enumeration giving command options.
pvaIn
Type: System.IntPtrPointer to a VARIANTARG structure containing input arguments. Can be a null reference (Nothing in Visual Basic).
pvaOut
Type: System.IntPtrPointer to a VARIANTARG structure containing command output. Can be a null reference (Nothing in Visual Basic).
Return Value
Type: System.Int32
S_OK if the command is supported and it succeeded; OLECMDERR_E_NOTSUPPORTED() if the command is not supported; or an error code if the command failed.
Implements
IOleCommandTarget.Exec(Guid%, UInt32, UInt32, IntPtr, IntPtr)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.