Programs.Item 方法

傳回在 Programs 集合中的 Program 物件。

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

語法

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

參數

傳回值

型別:EnvDTE.Program
Program 物件。

備註

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

.NET Framework 安全性

請參閱

參考

Programs 介面

EnvDTE 命名空間

其他資源

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