VCProject.Configurations Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém a coleção de configurações no projeto.
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
Valor da propriedade
Uma coleção de configurações.
- Atributos
Exemplos
Consulte como compilar código de exemplo para extensibilidade de modelo de projeto para obter informações sobre como compilar e executar este exemplo.
O exemplo a seguir usa a Configurations propriedade no ambiente de desenvolvimento integrado (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
Comentários
Consulte AddConfiguration.