Share via


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

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

SqlScriptEditorControl Class

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace