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

定義

覆寫 OnQueryStatus 函式。

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

參數

guidGroup
Guid

Guid 的參考。

nCmdId
UInt32

UInt32

oleCmd
OLECMD[]

OLECMD 物件的陣列。

oleText
IntPtr

nativeint

IntPtr

傳回

Int32

整數值,指出作業的結果。

備註

WPF 控制項有兩種: [程式碼編輯器] 視窗和 [結果文字] 視窗。 基類邏輯不會將 QueryStatus 要求傳送至這些控制項,因此轉送至正確的控制項。 如果編輯器處於作用中狀態,則傳送至 [程式碼編輯器] 視窗,或轉寄至 [結果] 文字視窗。

適用於