SimpleEditorView.QueryStatus Method
Gets the status of the specified commands.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.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
'宣言
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
)
Parameters
- guidCmdGroup
Type: System.Guid%
The GUID of the command group to which the commands belong.
- cmds
Type: System.UInt32
The number of commands to query.
- prgCmds
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]
An array of command IDs to query.
- pCmdText
Type: System.IntPtr
Pointer to a OLECMDTXT structure for command text.
Return Value
Type: System.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.