SolutionConfiguration 介面
更新:2007 年 11 月
代表建置方案的特定方式相關資訊。
命名空間: EnvDTE
組件: EnvDTE (在 EnvDTE.dll 中)
語法
<GuidAttribute("60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")> _
Public Interface SolutionConfiguration
Dim instance As SolutionConfiguration
[GuidAttribute("60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")]
public interface SolutionConfiguration
[GuidAttribute(L"60AAAD75-CB8D-4C62-9959-24D6A6A50DE7")]
public interface class SolutionConfiguration
public interface SolutionConfiguration
備註
SolutionConfiguration 也代表在環境中,由專案組態和平台提供內容給建置作業和設計階段功能的各個專案,例如編輯器中的陳述式完成。
範例
Sub SolutionConfigurationExample()
' Ensure all Debug project configurations are what are built for the
' Debug solution configuration.
Dim config As SolutionConfiguration = DTE.Solution.SolutionBuild.SolutionConfigurations.Item("Debug")
For each context in config.SolutionContexts
Context.ConfigurationName = "Debug"
Next
End Sub