SqlObjectExplorerPackage.IOleCommandTarget.QueryStatus Method
This class supports the product infrastructure and is not intended to be used directly from your code.
Queries the object for the status of one or more commands generated by user interface events.
Namespace: Microsoft.VisualStudio.Data.Tools.SqlObjectExplorer
Assembly: Microsoft.VisualStudio.Data.Tools.SqlObjectExplorer (in Microsoft.VisualStudio.Data.Tools.SqlObjectExplorer.dll)
Syntax
'Declaration
Private Function QueryStatus ( _
ByRef pguidCmdGroup As Guid, _
cCmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
'Usage
Dim instance As SqlObjectExplorerPackage
Dim pguidCmdGroup As Guid
Dim cCmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer
returnValue = CType(instance, IOleCommandTarget).QueryStatus(pguidCmdGroup, _
cCmds, prgCmds, pCmdText)
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 supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- pguidCmdGroup
Type: System.Guid
The unique identifier of the command group.
- cCmds
Type: System.UInt32
The number of commands in the prgCmds array.
- prgCmds
Type: OLECMD[]
The caller-allocated array of OLECMD structures that indicates the commands for which the caller needs status information.
- pCmdText
Type: System.IntPtr
The pointer to an OLECMDTEXT structure in which to return name and/or status information of a single command.
Return Value
Type: System.Int32
The object for the status of one or more commands generated by user interface events.
Implements
IOleCommandTargetQueryStatus(Guid, UInt32, OLECMD, IntPtr)
See Also
Reference
SqlObjectExplorerPackage Class
Microsoft.VisualStudio.Data.Tools.SqlObjectExplorer Namespace