Compartilhar via


SimpleEditorView.Exec Method

Executes the specified command.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function Exec ( _
    ByRef guidCmdGroup As Guid, _
    id As UInteger, _
    options As UInteger, _
    pvaIn As IntPtr, _
    pvaOut As IntPtr _
) As Integer
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
)
abstract Exec : 
        guidCmdGroup:Guid byref * 
        id:uint32 * 
        options:uint32 * 
        pvaIn:IntPtr * 
        pvaOut:IntPtr -> int  
override Exec : 
        guidCmdGroup:Guid byref * 
        id:uint32 * 
        options:uint32 * 
        pvaIn:IntPtr * 
        pvaOut:IntPtr -> int
public function Exec(
    guidCmdGroup : Guid, 
    id : uint, 
    options : uint, 
    pvaIn : IntPtr, 
    pvaOut : IntPtr
) : int

Parameters

  • guidCmdGroup
    Type: Guid%

    The GUID of the command group.

  • id
    Type: UInt32

    The ID of the command.

  • options
    Type: UInt32

    An OLECMDEXECOPT enumeration giving command options.

  • pvaIn
    Type: IntPtr

    Pointer to a VARIANTARG structure containing input arguments. Can be nulla null reference (Nothing in Visual Basic).

  • pvaOut
    Type: IntPtr

    Pointer to a VARIANTARG structure containing command output. Can be nulla null reference (Nothing in Visual Basic).

Return Value

Type: 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)

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace