Queries the object for the status of one or more commands generated by user interface events.
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
int QueryStatus( ref Guid pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText )
- Type: System.Guid
The GUID of the command group.
- Type: System.UInt32
The number of commands in prgCmds.
- Type: Microsoft.VisualStudio.OLE.Interop.OLECMD
An array of OLECMD structures that indicate the commands for which the caller needs status information. This method fills the cmdf member of each structure with values taken from the OLECMDF enumeration.
Return ValueType: System.Int32
This method returns S_OK on success. Other possible return values include the following.
The operation failed.
An unexpected error has occurred.
The prgCmds argument is null.
The pguidCmdGroup parameter is not null but does not specify a recognized command group.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.