Share via


VCFile.FileType 속성

파일의 형식을 가져오거나 설정합니다.

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

구문

‘선언
Property FileType As eFileType
eFileType FileType { get; set; }
property eFileType FileType {
    eFileType get ();
    void set (eFileType value);
}
abstract FileType : eFileType with get, set
function get FileType () : eFileType 
function set FileType (value : eFileType)

속성 값

형식: Microsoft.VisualStudio.VCProjectEngine.eFileType
eFileType 값입니다.

설명

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

예제

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

Public Module Module1
    Sub Test()
        Dim file As VCFile
        Dim col As IVCCollection
        Dim idx As Integer
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Files
        For idx = 1 To col.Count
            file = col.Item(idx)
            MsgBox("File type: " & file.FileType.ToString)
        Next
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCFile 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스