VCLinkerTool.MapExports, propriété

Obtient ou définit une valeur indiquant s'il faut inclure les fonctions exportées dans les informations du fichier de mappage.

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

Syntaxe

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

Valeur de propriété

Type : System.Boolean
true si les fonctions exportées sont incluses dans le fichier de mappage ; sinon, false.

Notes

MapExports expose les fonctions de l'option /MAPINFO (Inclure des informations dans le fichier de mappage) de l'éditeur de liens.

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' MapExports 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.MapExports = True
  End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCLinkerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms

Autres ressources

/MAPINFO (Inclure des informations dans le fichier de mappage)