Partilhar via


WindowPane.IOleCommandTarget.QueryStatus Method

Definition

Gets the status of the commands.

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid % guidGroup, System::UInt32 nCmdId, cli::array <Microsoft::VisualStudio::OLE::Interop::OLECMD> ^ oleCmd, IntPtr oleText) = Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget::QueryStatus;
int IOleCommandTarget.QueryStatus (ref Guid guidGroup, uint nCmdId, Microsoft.VisualStudio.OLE.Interop.OLECMD[] oleCmd, IntPtr oleText);
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 guidGroup As Guid, nCmdId As UInteger, oleCmd As OLECMD(), oleText As IntPtr) As Integer Implements IOleCommandTarget.QueryStatus

Parameters

guidGroup
Guid

Unique identifier of the command group. All the commands that are passed in the prgCmds array must belong to the group that is specified by guidCmdGroup.

nCmdId
UInt32

The number of commands in the prgCmds array.

oleCmd
OLECMD[]

A caller-allocated array of OLECMD structures that indicate the commands for which the caller requires status information. This method fills the cmdf member of each structure with values taken from the OLECMDF enumeration.

oleText
IntPtr

nativeint

Pointer to an OLECMDTEXTF structure to return a name and/or status information of a single command. Can be null to indicate that the caller does not require this information.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

Visual Studio calls this method to get the status of your commands. You do not need to override this method.

Applies to