VCFile.FileConfigurations Eigenschaft

Definition

Die Liste der Konfigurationen in der ausgewählten Datei.

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

Eigenschaftswert

Object

Ein Array von Konfigurationen.

Attribute

Beispiele

Im folgenden Beispiel wird die- FileConfigurations 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, 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  

Hinweise

Die Konfigurationen für die Datei entsprechen den Konfigurationen für das Projekt. 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 .

Gilt für