SolutionContexts.Item(Object) 方法

定义

返回 SolutionContext 集合中的对象 SolutionContexts

public:
 EnvDTE::SolutionContext ^ Item(System::Object ^ index);
public:
 EnvDTE::SolutionContext ^ Item(Platform::Object ^ index);
EnvDTE::SolutionContext Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.SolutionContext Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.SolutionContext
Public Function Item (index As Object) As SolutionContext

参数

index
Object

返回

SolutionContext

SolutionContext 对象。

属性

注解

传递给的值 Index 是一个整数,它是 SolutionContext 其集合中对象的索引, SolutionContexts 或者是对象的名称的字符串 SolutionContext

Item ArgumentException 如果集合找不到与索引值对应的对象,则该方法将引发异常。

适用于