FlavoredProject.IOleCommandTarget.QueryStatus Method
Queries the object for the status of one or more commands.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Private Function QueryStatus ( _
ByRef pguidCmdGroup As Guid, _
cCmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
int IOleCommandTarget.QueryStatus(
ref Guid pguidCmdGroup,
uint cCmds,
OLECMD[] prgCmds,
IntPtr pCmdText
)
private:
virtual int QueryStatus(
Guid% pguidCmdGroup,
unsigned int cCmds,
array<OLECMD>^ prgCmds,
IntPtr pCmdText
) sealed = IOleCommandTarget::QueryStatus
private abstract QueryStatus :
pguidCmdGroup:Guid byref *
cCmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
private override QueryStatus :
pguidCmdGroup:Guid byref *
cCmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
JScript does not support explicit interface implementations.
Parameters
pguidCmdGroup
Type: System.Guid%The GUID of the command group to which the commands belong.
cCmds
Type: System.UInt32The number of commands in the command array.
prgCmds
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]An array of OLECMD structures that contain information about the commands.
pCmdText
Type: System.IntPtrPointer to an OLECMDTEXT structure in which to return name and/or status information of a single command. Can be nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Int32
If the method succeeded, S_OK, otherwise an error code.
Implements
IOleCommandTarget.QueryStatus(Guid%, UInt32, array<OLECMD[], IntPtr)
Remarks
This method calls [M:Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(]System.Guid@,System.UInt32,Microsoft.VisualStudio.OLE.Interop.OLECMD[],System.IntPtr[)] on the menu service. For information on the COM interface, see IOleCommandTarget::QueryStatus.
.NET Framework Security
- 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.