ExpansionProvider::HandlePostExec Method (Guid, UInt32, UInt32, Boolean, IntPtr, IntPtr)
Called after a command has been executed.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
public: virtual bool HandlePostExec( Guid% guidCmdGroup, unsigned int nCmdId, unsigned int nCmdexecopt, bool commit, IntPtr pvaIn, IntPtr pvaOut )
Parameters
- guidCmdGroup
-
Type:
System::Guid
[in] The GUID of the command group.
- nCmdId
-
Type:
System::UInt32
[in] The specific ID of the command from the command group. This identifies the command to execute.
- nCmdexecopt
-
Type:
System::UInt32
[in] Additional parameters for the command (packed into a 32-bit value).
- commit
-
Type:
System::Boolean
[in] This is true if the code snippet has been committed to the source file.
- pvaIn
-
Type:
System::IntPtr
[in] An unmarshaled pointer to a Variant holding any parameters required by the command. This can be a null value indicating there are no additional parameters.
- pvaOut
-
Type:
System::IntPtr
[in, out] An unmarshaled pointer to a Variant to hold the result of the command, if any.
Return Value
Type: System::BooleanIf the command was handled, returns true; otherwise, returns false to let the caller handle the command.
This method is called after a command is executed. This allows the expansion provider a chance to finish any snippet expansion details.
The base method handles only the RETURN command and then only if an expansion was started in the HandlePreExec method; in this case, the EndTemplateEditing method is called to end the editing session — but only if the commit parameter is true — and true is returned to indicate the RETURN command was handled (this prevents formatting of the span which could mess up the format specified by the snippet itself).