VCConfiguration.Platform 屬性

取得要建置這個組態的平台。

命名空間:  Microsoft.VisualStudio.VCProjectEngine
組件:  Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

語法

'宣告
ReadOnly Property Platform As Object
Object Platform { get; }
property Object^ Platform {
    Object^ get ();
}
abstract Platform : Object with get
function get Platform () : Object

屬性值

型別:System.Object
物件,識別要建置組態的平台。

範例

請參閱HOW TO:編譯專案模型擴充性的範例程式碼如需有關如何編譯及執行這個範例資訊。

下列範例程式碼會取得VCConfiguration物件的Platform在整合式的開發環境 (IDE) 中的屬性:

' 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

.NET Framework 安全性

請參閱

參考

VCConfiguration 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間