Freigeben über


VCFile.FileConfigurations-Eigenschaft

Die Liste der Konfigurationen in der ausgewählten Datei.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
ReadOnly Property FileConfigurations As Object
Object FileConfigurations { get; }
property Object^ FileConfigurations {
    Object^ get ();
}
abstract FileConfigurations : Object with get
function get FileConfigurations () : Object

Eigenschaftswert

Typ: Object
Ein Array von Konfigurationen.

Hinweise

Die Konfigurationen auf der Datei entsprechen den Konfigurationen im Projekt. Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen.

Beispiele

Im folgenden Beispiel wird die Eigenschaft FileConfigurations in der integrierten Entwicklungsumgebung (IDE):

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

Public Module Module1
    Sub Test()
        Dim idx, idx2 As Integer
        Dim mycollection As IVCCollection
        Dim file As VCFile
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        mycollection = prj.Files
        MsgBox(mycollection.Count)
        For idx = 1 To mycollection.Count
            file = mycollection.Item(idx)
            For idx2 = 1 To file.FileConfigurations.Count
                MsgBox(file.FileConfigurations.Item(idx2).Name())
            Next
        Next
    End Sub
End Module

.NET Framework-Sicherheit

Siehe auch

Referenz

VCFile Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace