SqlScriptEditorControl.OnQueryStatus 메서드

Overrides the OnQueryStatus function.

네임스페이스:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
어셈블리:  SQLEditors(SQLEditors.dll)


Public Overrides Function OnQueryStatus ( _
    ByRef guidGroup As Guid, _
    nCmdId As UInteger, _
    oleCmd As OLECMD(), _
    oleText As IntPtr _
) As Integer
‘사용 방법
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
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

매개 변수

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

반환 값

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


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.

참고 항목


SqlScriptEditorControl 클래스

Microsoft.SqlServer.Management.UI.VSIntegration.Editors 네임스페이스