SimpleEditorView.QueryStatus Method
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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Dichiarazione
Public Overridable Function QueryStatus ( _
ByRef guidCmdGroup As Guid, _
cmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer
'Utilizzo
Dim instance As SimpleEditorView
Dim guidCmdGroup As Guid
Dim cmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer
returnValue = instance.QueryStatus(guidCmdGroup, _
cmds, prgCmds, pCmdText)
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: 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.