Partager via


VCCLCompilerTool.EnableFunctionLevelLinking, propriété

Obtient ou définit une valeur qui active la liaison de fonction- niveau. fonction-niveauEnableFunctionLevelLinking expose les fonctions de l'option /Gy (Activer la liaison au niveau des fonctions) du compilateur.

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

Syntaxe

'Déclaration
Property EnableFunctionLevelLinking As Boolean
bool EnableFunctionLevelLinking { get; set; }
property bool EnableFunctionLevelLinking {
    bool get ();
    void set (bool value);
}
abstract EnableFunctionLevelLinking : bool with get, set
function get EnableFunctionLevelLinking () : boolean
function set EnableFunctionLevelLinking (value : boolean)

Valeur de propriété

Type : System.Boolean
true si la liaison au niveau des fonctions est activée ; sinon, false.

Exemples

Consultez l'Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour les informations sur comment compiler et exécuter cet exemple.

L'exemple suivant modifie la propriété d'EnableFunctionLevelLinking dans (IDE) l'environnement de développement intégré :

' 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 VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.EnableFunctionLevelLinking = True
    End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCCLCompilerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms