FlavoredProject.IOleCommandTarget.QueryStatus 方法

查询一个或多个命令的状态的对象。

命名空间:  Microsoft.VisualStudio.Shell.Flavor
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Private Function QueryStatus ( _
    ByRef pguidCmdGroup As Guid, _
    cCmds As UInteger, _
    prgCmds As OLECMD(), _
    pCmdText As IntPtr _
) As Integer Implements IOleCommandTarget.QueryStatus
int IOleCommandTarget.QueryStatus(
    ref Guid pguidCmdGroup,
    uint cCmds,
    OLECMD[] prgCmds,
    IntPtr pCmdText
)

参数

  • pguidCmdGroup
    类型:System.Guid%
    命令属于命令组的 GUID。
  • pCmdText
    类型:System.IntPtr
    对返回名称和单个命令的状态信息的一 OLECMDTEXT 结构的指针。可以为 nullnull 引用(在 Visual Basic 中为 Nothing)。

返回值

类型:System.Int32
如果方法成功, S_OK,否则错误代码。

实现

IOleCommandTarget.QueryStatus(Guid%, UInt32, array<OLECMD[], IntPtr)

备注

此方法调用在菜单服务的 [M:Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(]System.Guid@,System.UInt32,Microsoft.VisualStudio.OLE.Interop.OLECMD[],System.IntPtr[)] 。有关 COM 接口的信息,请参见 IOleCommandTarget:: QueryStatus

.NET Framework 安全性

请参见

参考

FlavoredProject 类

Microsoft.VisualStudio.Shell.Flavor 命名空间