IVsCommandWindowsCollection.Create 方法

在指定的模式创建新的命令窗口。

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

语法

声明
Function Create ( _
    mode As UInteger, _
    dwToolWindowId As UInteger, _
    fShow As Integer, _
    <OutAttribute> ByRef puCookie As UInteger _
) As Integer
int Create(
    uint mode,
    uint dwToolWindowId,
    int fShow,
    out uint puCookie
)

参数

  • dwToolWindowId
    类型:System.UInt32
    [in] 窗口的标识符。使用 -1 封送处理服务选择 ID.
  • fShow
    类型:System.Int32
    [in] 指定命令 " 窗口中是否可见,在打开或创建。
  • puCookie
    类型:System.UInt32%
    [out] 命令窗口的 cookie。使用,在关闭有 Close的窗口时。

返回值

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

备注

COM 签名

从 vsshell80.idl:

HRESULT Create(
    [in]    COMMANDWINDOWMODE2 mode,
    [in]    DWORD dwToolWindowId,
    [in]    BOOL fShow,
    [out]   UINT * puCookie
);

.NET Framework 安全性

请参见

参考

IVsCommandWindowsCollection 接口

Microsoft.VisualStudio.Shell.Interop 命名空间