Share via


SqlScriptEditorControl.OnQueryStatus Method

Overrides the OnQueryStatus function.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

Syntax

'Declaration
Public Overrides Function OnQueryStatus ( _
    ByRef guidGroup As Guid, _
    nCmdId As UInteger, _
    oleCmd As OLECMD(), _
    oleText As IntPtr _
) As Integer
'Usage
Dim instance As SqlScriptEditorControl 
Dim guidGroup As Guid 
Dim nCmdId As UInteger 
Dim oleCmd As OLECMD()
Dim oleText As IntPtr 
Dim returnValue As Integer 

returnValue = instance.OnQueryStatus(guidGroup, _
    nCmdId, oleCmd, oleText)
public override int OnQueryStatus(
    ref Guid guidGroup,
    uint nCmdId,
    OLECMD[] oleCmd,
    IntPtr oleText
)
public:
virtual int OnQueryStatus(
    Guid% guidGroup, 
    unsigned int nCmdId, 
    array<OLECMD>^ oleCmd, 
    IntPtr oleText
) override
abstract OnQueryStatus : 
        guidGroup:Guid byref * 
        nCmdId:uint32 * 
        oleCmd:OLECMD[] * 
        oleText:IntPtr -> int  
override OnQueryStatus : 
        guidGroup:Guid byref * 
        nCmdId:uint32 * 
        oleCmd:OLECMD[] * 
        oleText:IntPtr -> int
public override function OnQueryStatus(
    guidGroup : Guid, 
    nCmdId : uint, 
    oleCmd : OLECMD[], 
    oleText : IntPtr
) : int

Parameters

  • oleCmd
    Type: array<OLECMD[]
    An array of OLECMD objects.

Return Value

Type: System.Int32
An integer value that indicates the result of operation.

Remarks

There are two WPF controls: the code editor window and the results text window. Base class logic does not send QueryStatus request to these controls, so forwarding to the right control. If the editor is active, then 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