VCProject.Configurations Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft die Auflistung der Konfigurationen im Projekt ab.
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
Eigenschaftswert
Eine Auflistung der Konfigurationen.
- Attribute
Beispiele
Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .
Im folgenden Beispiel wird die- Configurations Eigenschaft in der integrierten Entwicklungsumgebung (Integrated Development Environment, IDE) verwendet:
' 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
Hinweise
Siehe AddConfiguration.