Package.IOleCommandTarget.QueryStatus(Guid, UInt32, OLECMD[], IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Queries the object for the status of one or more commands generated by user interface events.
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
The GUID of the command group to which the command belongs.
- nCmdId
- UInt32
The number of elements in the oleCmd
array. In Visual Studio this number is always 1.
- oleText
-
IntPtr
nativeint
A pointer to an OLECMDTEXT structure in which to return name and/or status information for a single command. Can be null
to indicate that the caller does not need this information.
Returns
S_OK if the method succeeded, otherwise an error code. This method returns OLECMDERR_E_NOTSUPPORTED if no instance of IOleCommandTarget can be found.