Compartir a través de


LanguageService.DispatchCommand Method (Guid, UInt32, UInt32, IntPtr, IntPtr)

Called to execute 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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Function DispatchCommand ( _
    cmdGuid As Guid, _
    cmdId As UInteger, _
    cmdExecOpt As UInteger, _
    pvaIn As IntPtr, _
    pvaOut As IntPtr _
) As Integer
public int DispatchCommand(
    Guid cmdGuid,
    uint cmdId,
    uint cmdExecOpt,
    IntPtr pvaIn,
    IntPtr pvaOut
)
public:
int DispatchCommand(
    Guid cmdGuid, 
    unsigned int cmdId, 
    unsigned int cmdExecOpt, 
    IntPtr pvaIn, 
    IntPtr pvaOut
)
member DispatchCommand : 
        cmdGuid:Guid * 
        cmdId:uint32 * 
        cmdExecOpt:uint32 * 
        pvaIn:IntPtr * 
        pvaOut:IntPtr -> int
public function DispatchCommand(
    cmdGuid : Guid, 
    cmdId : uint, 
    cmdExecOpt : uint, 
    pvaIn : IntPtr, 
    pvaOut : IntPtr
) : int

Parameters

  • cmdGuid
    Type: Guid

    The GUID of the command.

  • cmdId
    Type: UInt32

    The command ID.

  • cmdExecOpt
    Type: UInt32

    The command options.

  • pvaIn
    Type: IntPtr

    The in parameters.

  • pvaOut
    Type: IntPtr

    The out parameters

Return Value

Type: Int32
The HRESULT.

.NET Framework Security

See Also

Reference

LanguageService Class

DispatchCommand Overload

Microsoft.VisualStudio.Package Namespace