Proprietà VCCLCompilerTool.EnableFunctionLevelLinking
Ottiene o imposta un valore che abilita il collegamento a livello di funzione. L'oggetto EnableFunctionLevelLinking espone la funzionalità dell'opzione /Gy (Attiva collegamento a livello di funzione) del compilatore.
Spazio dei nomi: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Sintassi
'Dichiarazione
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)
Valore proprietà
Tipo: Boolean
true se il collegamento a livello di funzione è abilitato; in caso contrario, false.
Esempi
Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.
Nell'esempio riportato di seguito la proprietà EnableFunctionLevelLinking nell'ambiente di sviluppo integrato (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
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.