ConfigurationManager الواجهة

Represents a مصفوفة of Configuration الكائنات, واحد for each combination of تكوين اسم و النظام الأساسي اسم.

مساحة الاسم:  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

ملاحظات

The ConfigurationManager كائن هو basically a مصفوفة of مشروع/مشروع العنصر تكوين أسماء و النظام الأساسي أسماء. Each عنصر of the مصفوفة هو a Configuration كائن. You can مرجع a ConfigurationManager كائن for a مشروع أو a مشروع العنصر, but some أنواع of مشاريع do not دعم مشروع العنصر-المستوى بنية إعدادات.

الإشارة إلى ذلك كائن باستخدام 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 مساحة الاسم