Share via


VCCLCompilerTool.EnableFunctionLevelLinking (Propiedad)

Obtiene o establece un valor que habilita la vinculación en el nivel de función. EnableFunctionLevelLinking expone la funcionalidad de la opción /Gy (Habilitar vinculación en el nivel de función) del compilador.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
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)

Valor de propiedad

Tipo: Boolean
Es true si la vinculación en el nivel de función está habilitada; de lo contrario, es false.

Ejemplos

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

En el ejemplo siguiente se modifica la propiedad EnableFunctionLevelLinking en el entorno de desarrollo integrado (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 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

Seguridad de .NET Framework

Vea también

Referencia

VCCLCompilerTool Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)