IOleCommandTarget.QueryStatus Method
Namespace: Microsoft.VisualStudio.OLE.Interop
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Syntax
'Declaration
Function QueryStatus ( _
ByRef pguidCmdGroup As Guid, _
cCmds As UInteger, _
<OutAttribute> prgCmds As OLECMD(), _
<OutAttribute> pCmdText As IntPtr _
) As Integer
'Usage
Dim instance As IOleCommandTarget
Dim pguidCmdGroup As Guid
Dim cCmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer
returnValue = instance.QueryStatus(pguidCmdGroup, _
cCmds, prgCmds, pCmdText)
int QueryStatus(
ref Guid pguidCmdGroup,
uint cCmds,
OLECMD[] prgCmds,
IntPtr pCmdText
)
int QueryStatus(
[InAttribute] Guid% pguidCmdGroup,
[InAttribute] unsigned int cCmds,
[InAttribute] [OutAttribute] array<OLECMD>^ prgCmds,
[InAttribute] [OutAttribute] IntPtr pCmdText
)
function QueryStatus(
pguidCmdGroup : Guid,
cCmds : uint,
prgCmds : OLECMD[],
pCmdText : IntPtr
) : int
Parameters
- pguidCmdGroup
Type: System.Guid%
- cCmds
Type: System.UInt32
- prgCmds
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECMD[]
- pCmdText
Type: System.IntPtr
Return Value
Type: System.Int32
Remarks
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.