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: GuidThe GUID of the command.
cmdId
Type: UInt32The command ID.
cmdExecOpt
Type: UInt32The command options.
pvaIn
Type: IntPtrThe in parameters.
pvaOut
Type: IntPtrThe out parameters
Return Value
Type: Int32
The HRESULT.
.NET Framework Security
- 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.