Export (0) Print
Expand All
Expand Minimize

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
[C++]
HRESULT __stdcall get_Platforms(
   /* [out, retval] */ IDispatch** retVal
);
[C#]
public object Platforms {get;}
[JScript .NET]
public function get Platforms() : Object

Example

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)
        MsgBox(myplat.Name)
    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

Show:
© 2014 Microsoft