Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the status of the specified commands.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Function QueryStatus ( _
ByRef guidCmdGroup As Guid, _
cmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer
public virtual int QueryStatus(
ref Guid guidCmdGroup,
uint cmds,
OLECMD[] prgCmds,
IntPtr pCmdText
)
public:
virtual int QueryStatus(
Guid% guidCmdGroup,
unsigned int cmds,
array<OLECMD>^ prgCmds,
IntPtr pCmdText
)
abstract QueryStatus :
guidCmdGroup:Guid byref *
cmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
override QueryStatus :
guidCmdGroup:Guid byref *
cmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
public function QueryStatus(
guidCmdGroup : Guid,
cmds : uint,
prgCmds : OLECMD[],
pCmdText : IntPtr
) : int
Parameters
guidCmdGroup
Type: Guid%The GUID of the command group to which the commands belong.
cmds
Type: UInt32The number of commands to query.
prgCmds
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]An array of command IDs to query.
pCmdText
Type: IntPtrPointer to a OLECMDTXT structure for command text.
Return Value
Type: Int32
S_OK if all commands are enabled, or an error code.
Implements
IOleCommandTarget.QueryStatus(Guid%, UInt32, array<OLECMD[], IntPtr)
.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.