SqlScriptEditorControl.OnQueryStatus(Guid, UInt32, OLECMD[], IntPtr) Method

Definition

Overrides the OnQueryStatus function.

public:
 override int OnQueryStatus(Guid % guidGroup, System::UInt32 nCmdId, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMD> ^ oleCmd, IntPtr oleText);
public override int OnQueryStatus (ref Guid guidGroup, uint nCmdId, Microsoft.VisualStudio.OLE.Interop.OLECMD[] oleCmd, IntPtr oleText);
override this.OnQueryStatus : Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
Public Overrides Function OnQueryStatus (ByRef guidGroup As Guid, nCmdId As UInteger, oleCmd As OLECMD(), oleText As IntPtr) As Integer

Parameters

guidGroup
Guid

A reference to Guid.

nCmdId
UInt32

A UInt32.

oleCmd
OLECMD[]

An array of OLECMD objects.

oleText
IntPtr

nativeint

A IntPtr.

Returns

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.

Applies to