LanguageService::DispatchCommand Method (Guid, UInt32, IntPtr, IntPtr)
Visual Studio 2015
Called to execute the specified command.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: int DispatchCommand( Guid cmdGuid, unsigned int cmdId, IntPtr pvaIn, IntPtr pvaOut )
Parameters
- cmdGuid
-
Type:
System::Guid
[in] The GUID of the command to execute.
- cmdId
-
Type:
System::UInt32
[in] The ID of the command to execute.
- pvaIn
-
Type:
System::IntPtr
[in] A pointer to possible parameters for the command.
- pvaOut
-
Type:
System::IntPtr
[out] A pointer to a place to return the results of the command.
This method executes the specified command by getting the IOleCommandTarget interface from the SUIHostCommandDispatcher service and calling M:Microsoft.VisualStudio.Shell.WindowPane.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(System.Guid@,System.UInt32,System.UInt32,System.IntPtr,System.IntPtr) with the given parameters, but only if the command exists and is enabled.
Show: