VCFile.FileConfigurations 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
所选文件上的配置列表。
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
属性值
配置的数组。
- 属性
示例
下面的示例使用 FileConfigurations 集成开发环境中的属性 (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
注解
文件上的配置对应于项目上的配置。 有关如何编译和运行此示例的信息,请参阅 如何:编译项目模型扩展性的示例代码 。