VCLinkerTool.EnableCOMDATFolding, propriété

Supprime les symboles COMDAT redondants dans la sortie de l'Éditeur de liens.

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

Syntaxe

'Déclaration
Property EnableCOMDATFolding As optFoldingType
optFoldingType EnableCOMDATFolding { get; set; }
property optFoldingType EnableCOMDATFolding {
    optFoldingType get ();
    void set (optFoldingType value);
}
abstract EnableCOMDATFolding : optFoldingType with get, set
function get EnableCOMDATFolding () : optFoldingType
function set EnableCOMDATFolding (value : optFoldingType)

Valeur de propriété

Type : Microsoft.VisualStudio.VCProjectEngine.optFoldingType
Énumération optFoldingType.

Notes

EnableCOMDATFolding expose les fonctions de l'option /OPT (Optimisations) de l'éditeur de liens.

Utilisez l'énumération d' optFoldingType pour définir la valeur de cette propriété.

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' EnableCOMDATFolding 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.EnableCOMDATFolding = optFoldingType.optNoFolding
  End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCLinkerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms