Bagikan melalui


VCPropertySheet.WholeProgramOptimization Property

Gets or sets a value indicating whether to enable cross-module optimizations by delaying code generation to link time.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Property WholeProgramOptimization As Boolean
'Usage
Dim instance As VCPropertySheet 
Dim value As Boolean 

value = instance.WholeProgramOptimization

instance.WholeProgramOptimization = value
bool WholeProgramOptimization { get; set; }
property bool WholeProgramOptimization {
    bool get ();
    void set (bool value);
}
function get WholeProgramOptimization () : boolean 
function set WholeProgramOptimization (value : boolean)

Property Value

Type: System.Boolean
true if cross-module optimizations are enabled; otherwise, false.

Remarks

WholeProgramOptimization exposes the functionality of the compiler's /GL (Whole Program Optimization) option.

It is better to set the VCConfiguration object's WholeProgramOptimization property rather than to set the compiler property of the same name and the linker's LinkTimeCodeGeneration property.

The compiler's version of this property and the linker's LinkTimeCodeGeneration property are not available via the property pages.

.NET Framework Security

See Also

Reference

VCPropertySheet Interface

VCPropertySheet Members

Microsoft.VisualStudio.VCProjectEngine Namespace