ConfigurationManager インターフェイス
Configuration オブジェクトの行列を表します。行列は、構成名とプラットフォーム名の組み合わせです。
名前空間: EnvDTE
アセンブリ: EnvDTE (EnvDTE.dll 内)
構文
'宣言
<GuidAttribute("9043FDA1-345B-4364-900F-BC8598EB8E4F")> _
Public Interface ConfigurationManager _
Inherits IEnumerable
[GuidAttribute("9043FDA1-345B-4364-900F-BC8598EB8E4F")]
public interface ConfigurationManager : IEnumerable
[GuidAttribute(L"9043FDA1-345B-4364-900F-BC8598EB8E4F")]
public interface class ConfigurationManager : IEnumerable
[<GuidAttribute("9043FDA1-345B-4364-900F-BC8598EB8E4F")>]
type ConfigurationManager =
interface
interface IEnumerable
end
public interface ConfigurationManager extends IEnumerable
ConfigurationManager 型で公開されるメンバーは以下のとおりです。
プロパティ
| 名前 | 説明 | |
|---|---|---|
| パブリック プロパティ | ActiveConfiguration | ソリューション ビルド操作に使用する現在のソリューション構成を取得します。 |
| パブリック プロパティ | ConfigurationRowNames | プロジェクトまたはプロジェクト項目について、すべての定義済みの構成名の配列を取得します。 |
| パブリック プロパティ | Count | コレクション内のオブジェクトの数を示す値を取得します。 |
| パブリック プロパティ | DTE | トップレベルの機能拡張オブジェクトを取得します。 |
| パブリック プロパティ | Parent | ConfigurationManager オブジェクトの直接の親オブジェクトを取得します。 |
| パブリック プロパティ | PlatformNames | 使用できるすべてのプラットフォームのリストを取得します。 |
| パブリック プロパティ | SupportedPlatforms | 現在のプロジェクトに追加でき、ビルド構成の作成のために追加することになると考えられるプラットフォームの名前のリストを取得します。 |
このページのトップへ
メソッド
| 名前 | 説明 | |
|---|---|---|
| パブリック メソッド | AddConfigurationRow | 既存のプロジェクトまたはプロジェクト項目の構成行の Configuration オブジェクトに基づいて、新しいプロジェクトまたはプロジェクト項目の構成行を作成します。 |
| パブリック メソッド | AddPlatform | 既存のプラットフォームの Configuration オブジェクトに基づいて、新しいオペレーティング システム プラットフォームのビルド設定を作成します。 |
| パブリック メソッド | ConfigurationRow | "Debug" や "Retail" など、1 つの構成名のビルド構成を表すアイテムのコレクションを返します。 |
| パブリック メソッド | DeleteConfigurationRow | "Debug" や "Retail" などのビルド構成の行を削除します。 |
| パブリック メソッド | DeletePlatform | "WinCE PalmSize" などのプラットフォーム構成の列を削除します。 |
| パブリック メソッド | GetEnumerator() | コレクションを反復処理する列挙子を返します。 (IEnumerable から継承されます。) |
| パブリック メソッド | GetEnumerator() | コレクション内の項目の列挙子を返します。 |
| パブリック メソッド | Item | ConfigurationManager コレクションの Configuration オブジェクトを返します。 |
| パブリック メソッド | Platform | 現在の構成の Configurations を返します。 |
このページのトップへ
解説
基本的に、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