ViewFilter.HandlePostExec Method
Handles post-processing after a command has been executed.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Overridable Sub HandlePostExec ( _
ByRef guidCmdGroup As Guid, _
nCmdId As UInteger, _
nCmdexecopt As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr, _
bufferWasChanged As Boolean _
)
'使用
Dim instance As ViewFilter
Dim guidCmdGroup As Guid
Dim nCmdId As UInteger
Dim nCmdexecopt As UInteger
Dim pvaIn As IntPtr
Dim pvaOut As IntPtr
Dim bufferWasChanged As Boolean
instance.HandlePostExec(guidCmdGroup, _
nCmdId, nCmdexecopt, pvaIn, pvaOut, _
bufferWasChanged)
public virtual void HandlePostExec(
ref Guid guidCmdGroup,
uint nCmdId,
uint nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut,
bool bufferWasChanged
)
public:
virtual void HandlePostExec(
Guid% guidCmdGroup,
unsigned int nCmdId,
unsigned int nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut,
bool bufferWasChanged
)
abstract HandlePostExec :
guidCmdGroup:Guid byref *
nCmdId:uint32 *
nCmdexecopt:uint32 *
pvaIn:IntPtr *
pvaOut:IntPtr *
bufferWasChanged:bool -> unit
override HandlePostExec :
guidCmdGroup:Guid byref *
nCmdId:uint32 *
nCmdexecopt:uint32 *
pvaIn:IntPtr *
pvaOut:IntPtr *
bufferWasChanged:bool -> unit
public function HandlePostExec(
guidCmdGroup : Guid,
nCmdId : uint,
nCmdexecopt : uint,
pvaIn : IntPtr,
pvaOut : IntPtr,
bufferWasChanged : boolean
)
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).
- pvaIn
Type: System.IntPtr
[in] A pointer to a Variant object 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] A pointer to a Variant object to hold the result of the command, if any.
- bufferWasChanged
Type: System.Boolean
[in] The GUID of the command group.
Remarks
This method is called after a command has been processed. This method typically handles events such as smart indenting, reformatting of code, and brace matching.
The base method obtains the expansion provider and calls the HandlePostExec method on the ExpansionProvider object if the object exists. If the expansion provider handles the call then this method does nothing else. Otherwise, if the RETURN command is given and a completion set is active and the IndentStyle property is set to Smart, then call the HandleSmartIndent method. Otherwise, if any other typed key command is given, pass the command to the OnCommand method in the Source object that was obtained from the CodeWindowManager object in the ViewFilter constructor.
.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.