다음을 통해 공유


VCFile.FileConfigurations 속성

선택한 파일의 구성 목록입니다.

네임스페이스:  Microsoft.VisualStudio.VCProjectEngine
어셈블리:  Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)

구문

‘선언
ReadOnly Property FileConfigurations As Object
Object FileConfigurations { get; }
property Object^ FileConfigurations {
    Object^ get ();
}
abstract FileConfigurations : Object with get
function get FileConfigurations () : Object

속성 값

형식: 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

.NET Framework 보안

참고 항목

참조

VCFile 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스