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
参数
index
类型:Object必选。 要返回的 ContextAttribute 对象的索引。
返回值
类型:EnvDTE.ContextAttribute
一个 ContextAttribute 对象。
备注
传递给 index 的值是一个整数,它可以是 ContextAttribute 对象在其 ContextAttributes 集合中的索引,也可以是一个字符串值,等价于集合中 ContextAttribute 的名称。
如果集合找不到对应于索引值的对象,则 Item 方法引发 ArgumentException 异常。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。