This documentation is archived and is not being maintained.

Platform Property

Visual Studio .NET 2003

Specifies the platform this configuration is being built for.

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


The following sample code obtains the VCConfiguration object's Platform property in the development environment:

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

Public Module Module1
    Sub Test()
        Dim MyString As String
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        MyString = cfg.Platform.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: VCConfiguration Object | VCStyleSheet Object