共用方式為


FlavoredProject.IOleCommandTarget.QueryStatus Method

Definition

Queries the object for the status of one or more commands.

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid % pguidCmdGroup, System::UInt32 cCmds, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMD> ^ prgCmds, IntPtr pCmdText) = Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget::QueryStatus;
int IOleCommandTarget.QueryStatus (ref Guid pguidCmdGroup, uint cCmds, Microsoft.VisualStudio.OLE.Interop.OLECMD[] prgCmds, IntPtr pCmdText);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus : Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus : Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.OLECMD[] * nativeint -> int
Function QueryStatus (ByRef pguidCmdGroup As Guid, cCmds As UInteger, prgCmds As OLECMD(), pCmdText As IntPtr) As Integer Implements IOleCommandTarget.QueryStatus

Parameters

pguidCmdGroup
Guid

The GUID of the command group to which the commands belong.

cCmds
UInt32

The number of commands in the command array.

prgCmds
OLECMD[]

An array of OLECMD structures that contain information about the commands.

pCmdText
IntPtr

nativeint

Pointer to an OLECMDTEXT structure in which to return name and/or status information of a single command. Can be null.

Returns

If the method succeeded, S_OK, otherwise an error code.

Implements

Remarks

This method calls QueryStatus on the menu service. For information on the COM interface, see IOleCommandTarget::QueryStatus.

Applies to