This documentation is archived and is not being maintained.

Platforms Property (VCProject)

Visual Studio .NET 2003

Returns the platforms for which this project can be built. For Visual C++, this will only be Win32.

[Visual Basic .NET]
Public ReadOnly Property Platforms() As Object
[Visual Basic 6]
Property Get Platforms() As Object
HRESULT __stdcall get_Platforms(
   /* [out, retval] */ IDispatch** retVal
public object Platforms {get;}
[JScript .NET]
public function get Platforms() : Object


The following sample code uses the Platforms property in the development environment:

' 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)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCProject Object