VCLinkerTool.SupportUnloadOfDelayLoadedDLL 屬性

取得或設定值,這個值表示是否允許對延遲載入的 DLL 進行明確卸載。

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

語法

'宣告
Property SupportUnloadOfDelayLoadedDLL As Boolean
bool SupportUnloadOfDelayLoadedDLL { get; set; }
property bool SupportUnloadOfDelayLoadedDLL {
    bool get ();
    void set (bool value);
}
abstract SupportUnloadOfDelayLoadedDLL : bool with get, set
function get SupportUnloadOfDelayLoadedDLL () : boolean
function set SupportUnloadOfDelayLoadedDLL (value : boolean)

屬性值

型別:System.Boolean
如果不允許對延遲載入的 DLL 進行明確卸載則為 true,否則為 false。

備註

SupportUnloadOfDelayLoadedDLL 會公開 /DELAY (延遲載入匯入設定) 連結器選項的功能。

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

範例

下列範例修改在整合式開發環境 (IDE) 的 SupportUnloadOfDelayLoadedDLL 屬性:

' 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.SupportUnloadOfDelayLoadedDLL = True
  End Sub
End Module

.NET Framework 安全性

請參閱

參考

VCLinkerTool 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間