ContextAttributes.Item(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个作为 ContextAttribute 集合项的对象 ContextAttributes 。
public:
EnvDTE::ContextAttribute ^ Item(System::Object ^ index);
public:
EnvDTE::ContextAttribute ^ Item(Platform::Object ^ index);
EnvDTE::ContextAttribute Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.ContextAttribute Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.ContextAttribute
Public Function Item (index As Object) As ContextAttribute
参数
- index
- Object
必需。 要返回的 ContextAttribute 对象的索引。
返回
ContextAttribute 对象。
- 属性
注解
传递给的值 index 是一个整数,它是 ContextAttribute 其集合中对象的索引, ContextAttributes 或者是一个字符串值,表示 ContextAttribute 集合中的名称。
Item ArgumentException 如果集合找不到与索引值对应的对象,则该方法将引发异常。