IVsCommandWindowsCollection.SetRunningCommandWindowCommand 方法

指示命令窗口是否运行 (或不运行) 命令。

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

语法

声明
Function SetRunningCommandWindowCommand ( _
    uCookie As UInteger, _
    fCmdWin As Integer _
) As Integer
int SetRunningCommandWindowCommand(
    uint uCookie,
    int fCmdWin
)

参数

  • fCmdWin
    类型:System.Int32
    [in] 布尔值true 指示命令窗口运行命令; false 指示命令当前未运行。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl:

HRESULT SetRunningCommandWindowCommand(
    [in] UINT uCookie
    [in]    BOOL fCmdWin
);

.NET Framework 安全性

请参见

参考

IVsCommandWindowsCollection 接口

Microsoft.VisualStudio.Shell.Interop 命名空间