共用方式為


VCAssemblyReference.VCProjectEngine 屬性

取得專案引擎的指標。

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

語法

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

屬性值

型別:System.Object
專案引擎的指標。

備註

如需如何編譯與執行此範例的詳細資訊,請參閱HOW TO:編譯專案模型擴充性的範例程式碼

範例

下列範例程式碼使用VCProjectEngine在開發環境中的屬性:

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

Public Module Module1
    Sub Test()
        Dim filter As VCFilter
        Dim col As IVCCollection
        Dim ProjEng As VCProjectEngine
        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Filters
        ProjEng = col.VCProjectEngine
        ProjEng.BuildTiming = False

    End Sub
End Module

.NET Framework 安全性

請參閱

參考

VCAssemblyReference 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間