包含解决方案配置的所有 SolutionContext 对象。
命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)
语法
声明
<GuidAttribute("0685B546-FB84-4917-AB98-98D40F892D61")> _
Public Interface SolutionContexts _
    Inherits IEnumerable
[GuidAttribute("0685B546-FB84-4917-AB98-98D40F892D61")]
public interface SolutionContexts : IEnumerable
[GuidAttribute(L"0685B546-FB84-4917-AB98-98D40F892D61")]
public interface class SolutionContexts : IEnumerable
[<GuidAttribute("0685B546-FB84-4917-AB98-98D40F892D61")>]
type SolutionContexts =  
    interface
        interface IEnumerable
    end
public interface SolutionContexts extends IEnumerable
SolutionContexts 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | Count | 获取指示集合中 SolutionContext 对象数的值。 | 
| .gif) | DTE | 获取顶级扩展性对象。 | 
| .gif) | Parent | 返回 SolutionContexts 集合的直接父对象。 | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) | 
| .gif) | GetEnumerator() | 获取集合中项的枚举。 | 
| .gif) | Item | 返回 SolutionContexts 集合中的一个 SolutionContext 对象。 | 
页首
备注
对于解决方案中的每个项目,每个解决方案都有一个 SolutionContext 对象,并且 SolutionContexts 集合包含所有这些 SolutionContext 对象。 它们定义在选择 SolutionConfiguration 时,哪个项目配置和平台提供上下文,并且您可以确定是否生成或部署该特定项目。