SqlScriptEditorControl.OnExec Method
Overrides the OnExec function.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors (in SQLEditors.dll)
Syntax
'Declaration
Public Overrides Function OnExec ( _
ByRef guidGroup As Guid, _
nCmdId As UInteger, _
nCmdExcept As UInteger, _
pobIn As IntPtr, _
pvaOut As IntPtr _
) As Integer
'Usage
Dim instance As SqlScriptEditorControl
Dim guidGroup As Guid
Dim nCmdId As UInteger
Dim nCmdExcept As UInteger
Dim pobIn As IntPtr
Dim pvaOut As IntPtr
Dim returnValue As Integer
returnValue = instance.OnExec(guidGroup, _
nCmdId, nCmdExcept, pobIn, pvaOut)
public override int OnExec(
ref Guid guidGroup,
uint nCmdId,
uint nCmdExcept,
IntPtr pobIn,
IntPtr pvaOut
)
public:
virtual int OnExec(
Guid% guidGroup,
unsigned int nCmdId,
unsigned int nCmdExcept,
IntPtr pobIn,
IntPtr pvaOut
) override
abstract OnExec :
guidGroup:Guid byref *
nCmdId:uint32 *
nCmdExcept:uint32 *
pobIn:IntPtr *
pvaOut:IntPtr -> int
override OnExec :
guidGroup:Guid byref *
nCmdId:uint32 *
nCmdExcept:uint32 *
pobIn:IntPtr *
pvaOut:IntPtr -> int
public override function OnExec(
guidGroup : Guid,
nCmdId : uint,
nCmdExcept : uint,
pobIn : IntPtr,
pvaOut : IntPtr
) : int
Parameters
- guidGroup
Type: System.Guid%
A reference to Guid.
- nCmdId
Type: System.UInt32
An UInt32 value that specifies command identifier.
- nCmdExcept
Type: System.UInt32
An UInt32 value that specifies command exception.
- pobIn
Type: System.IntPtr
A IntPtr object.
- pvaOut
Type: System.IntPtr
A IntPtr object.
Return Value
Type: System.Int32
An integer value that specifies the result of the operation.
Remarks
There are two WPF controls: the code editor window and the results text window. Base class logic does not send Exec request to these controls, so forwarding to the right control. If the editor is active, send to the code editor window, else forward to the results text window.
See Also
Reference
Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace