FlavoredProjectBase.QueryStatusCommand Method
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assemblies: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'宣言
Protected Overridable Function QueryStatusCommand ( _
itemid As UInteger, _
ByRef pguidCmdGroup As Guid, _
cCmds As UInteger, _
prgCmds As OLECMD(), _
pCmdText As IntPtr _
) As Integer
'使用
Dim itemid As UInteger
Dim pguidCmdGroup As Guid
Dim cCmds As UInteger
Dim prgCmds As OLECMD()
Dim pCmdText As IntPtr
Dim returnValue As Integer
returnValue = Me.QueryStatusCommand(itemid, _
pguidCmdGroup, cCmds, prgCmds, pCmdText)
protected virtual int QueryStatusCommand(
uint itemid,
ref Guid pguidCmdGroup,
uint cCmds,
OLECMD[] prgCmds,
IntPtr pCmdText
)
protected:
virtual int QueryStatusCommand(
unsigned int itemid,
Guid% pguidCmdGroup,
unsigned int cCmds,
array<OLECMD>^ prgCmds,
IntPtr pCmdText
)
abstract QueryStatusCommand :
itemid:uint32 *
pguidCmdGroup:Guid byref *
cCmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
override QueryStatusCommand :
itemid:uint32 *
pguidCmdGroup:Guid byref *
cCmds:uint32 *
prgCmds:OLECMD[] *
pCmdText:IntPtr -> int
protected function QueryStatusCommand(
itemid : uint,
pguidCmdGroup : Guid,
cCmds : uint,
prgCmds : OLECMD[],
pCmdText : IntPtr
) : int
Parameters
- itemid
Type: System.UInt32
- 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
.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.