ContextAttributes.Item 方法

傳回 ContextAttribute 物件,也就是 ContextAttributes 集合中的項目。

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

語法

'宣告
Function Item ( _
    index As Object _
) As ContextAttribute
ContextAttribute Item(
    Object index
)
ContextAttribute^ Item(
    Object^ index
)
abstract Item : 
        index:Object -> ContextAttribute 
function Item(
    index : Object
) : ContextAttribute

參數

傳回值

型別:EnvDTE.ContextAttribute
ContextAttribute 物件。

備註

傳遞到 index 的值是整數值,它是 ContextAttributes 集合中 ContextAttribute 物件的索引,或者等於集合中 ContextAttribute 名稱的字串值。

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

.NET Framework 安全性

請參閱

參考

ContextAttributes 介面

EnvDTE 命名空間

其他資源

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