VCConfiguration.RegisterOutput 屬性

取得或設定值,這個值表示組態是否會登錄此建置的主要輸出。

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

語法

'宣告
ReadOnly Property RegisterOutput As Boolean
bool RegisterOutput { get; }
property bool RegisterOutput {
    bool get ();
}
abstract RegisterOutput : bool with get
function get RegisterOutput () : boolean

屬性值

型別:System.Boolean
如果組態會登錄此建置的主要輸出,則為 true,否則為 false。

備註

VCConfiguration物件的RegisterOutput屬性會是另一種方式,雖然唯讀狀態,以存取VCLinkerTool物件的RegisterOutput屬性。

如需詳細資訊,請參閱 連結器屬性頁

範例

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

下列範例會使用VCLinkerTool物件的RegisterOutput在整合式的開發環境 (IDE) 中的屬性:

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCLinkerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCLinkerTool")
        tool.RegisterOutput = True
    End Sub
End Module

.NET Framework 安全性

請參閱

參考

VCConfiguration 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間