다음을 통해 공유


VCProject.Platforms 속성

이 프로젝트를 빌드할 수 있는 대상 플랫폼을 가져옵니다. Visual C++의 경우 Win32만 가능합니다.

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

구문

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

속성 값

형식: Object
이 프로젝트를 빌드할 수 있는 대상 플랫폼이 들어 있는 개체입니다.

예제

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

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

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim mycol As IVCCollection
        Dim myplat As VCPlatform
        prj = DTE.Solution.Projects.Item(1).Object
        mycol = prj.Platforms
        myplat = mycol.Item(1)
        MsgBox(myplat.Name)
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCProject 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스