VCLinkerTool.SupportUnloadOfDelayLoadedDLL, propriété

Obtient ou définit une valeur indiquant si le déchargement explicite des DLL chargées en différé est autorisé.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
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)

Valeur de propriété

Type : System.Boolean
true si le déchargement explicite des DLL chargées en différé est autorisé ; sinon, false.

Notes

SupportUnloadOfDelayLoadedDLL expose les fonctions de l'option /DELAY (Paramètres d'importation à chargement différé) de l'éditeur de liens.

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour plus d'informations sur la façon de compiler et exécuter cet exemple.

Exemples

l'exemple suivant modifie la propriété d' SupportUnloadOfDelayLoadedDLL dans l'environnement de développement intégré (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.SupportUnloadOfDelayLoadedDLL = True
  End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCLinkerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms