VCProject.Configurations Свойство

Определение

Получает коллекцию конфигураций для проекта.

public:
 property System::Object ^ Configurations { System::Object ^ get(); };
public:
 property Platform::Object ^ Configurations { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(808)]
public object Configurations { [System.Runtime.InteropServices.DispId(808)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(808)>]
[<get: System.Runtime.InteropServices.DispId(808)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.Configurations : obj
Public ReadOnly Property Configurations As Object

Значение свойства

Object

Коллекция конфигураций.

Атрибуты

Примеры

Сведения о том, как скомпилировать и запустить этот пример, см. в разделе как скомпилировать пример кода для расширения модели проекта .

В следующем примере используется Configurations свойство в интегрированной среде разработки (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine  
Imports EnvDTE  
Imports Microsoft.VisualStudio.VCProjectEngine  

Public Module Module1  
    Sub Test()  
        Dim idx As Integer  
        Dim prj As VCProject  
        Dim mycollection As IVCCollection  
        Dim cfg As VCConfiguration  
        prj = DTE.Solution.Projects.Item(1).Object  
        mycollection = prj.Configurations  
        MsgBox(mycollection.Count)  
        For idx = 1 To mycollection.Count  
            cfg = mycollection.Item(idx)  
            MsgBox(cfg.Name)  
        Next  
    End Sub  
End Module  

Комментарии

См. раздел AddConfiguration.

Применяется к