다음을 통해 공유


VCProject.Files 속성

개체에 대한 파일 컬렉션을 가져옵니다.

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

구문

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

속성 값

형식: Object
파일 컬렉션입니다.

예제

참고 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 내용은.

다음 예제는 Files 속성에는 VCProject 통합된 개발 환경 (IDE)에서 개체:

' 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 myfile As VCFile

        prj = DTE.Solution.Projects.Item(1).Object
        mycollection = prj.Files
        MsgBox(mycollection.Count)
        For idx = 1 To mycollection.Count
            myfile = mycollection.Item(idx)
            ' myfile.Name has the name of the file
        Next
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCProject 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스