Bagikan melalui


ConfigurationManager Interface

Represents a matrix of Configuration objects, one for each combination of configuration name and platform name.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
<GuidAttribute("9043FDA1-345B-4364-900F-BC8598EB8E4F")> _
Public Interface ConfigurationManager _
    Inherits IEnumerable
'Usage
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

Remarks

The ConfigurationManager object is basically a matrix of project/project item configuration names and platform names. Each element of the matrix is a Configuration object. You can reference a ConfigurationManager object for a project or a project item, but some types of projects do not support project item-level build settings.

Reference this object by using EnvDTE.Project.ConfigurationManager. or EnvDTE.ProjectItem.ConfigurationManager.

Examples

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

See Also

Reference

ConfigurationManager Members

EnvDTE Namespace