WindowConfigurations.Item 方法

傳回 WindowConfigurations 集合的索引成員。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
Function Item ( _
    index As Object _
) As WindowConfiguration
WindowConfiguration Item(
    Object index
)
WindowConfiguration^ Item(
    [InAttribute] Object^ index
)
abstract Item : 
        index:Object -> WindowConfiguration 
function Item(
    index : Object
) : WindowConfiguration

參數

  • index
    型別:System.Object
    必要項。所要傳回項目的索引。

傳回值

型別:EnvDTE.WindowConfiguration
WindowConfiguration 物件。

備註

傳遞給 index 的是整數值,也就是集合中的 WindowConfiguration 物件索引。 Index 也可為與集合中 WindowConfiguration 之名稱相同的字串值。

如果集合無法找到對應於索引值的物件,Item 方法就會擲回 ArgumentException 例外狀況。

.NET Framework 安全性

請參閱

參考

WindowConfigurations 介面

EnvDTE 命名空間

其他資源

HOW TO:編譯和執行 Automation 物件模型程式碼範例