Share via


ConfigurationManager 介面

更新:2007 年 11 月

表示 Configuration 物件的矩陣,組態名稱和平台名稱的每個組合各有一個矩陣。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

<GuidAttribute("9043FDA1-345B-4364-900F-BC8598EB8E4F")> _
Public Interface ConfigurationManager _
    Implements IEnumerable

Dim instance As ConfigurationManager
[GuidAttribute("9043FDA1-345B-4364-900F-BC8598EB8E4F")]
public interface ConfigurationManager : IEnumerable
[GuidAttribute(L"9043FDA1-345B-4364-900F-BC8598EB8E4F")]
public interface class ConfigurationManager : IEnumerable
public interface ConfigurationManager extends IEnumerable

備註

ConfigurationManager 物件基本上是專案/專案項目的組態名稱與平台名稱的矩陣,矩陣中的每個項目都是 Configuration 物件。ConfigurationManager 物件可以做為專案或專案項目的參考,但有些專案類型並不支援專案項目層級的組建設定。

使用 EnvDTE.Project.ConfigurationManager 或 EnvDTE.ProjectItem.ConfigurationManager 參考這項物件。

範例

Sub ConfigurationManagerExample()
   ' Before running, load a project.
   ' Set references to all necessary objects.
   Dim CM As ConfigurationManager = DTE.Solution.Projects.Item(1).ConfigurationManager
   ' List the configuration name used for the current project.
   MsgBox(CM.Item(2).ConfigurationName)
End Sub

請參閱

參考

ConfigurationManager 成員

EnvDTE 命名空間