VCLinkerTool.FixedBaseAddress 属性

获取或设置一个值,该值指示是否必须在固定地址加载映像。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Property FixedBaseAddress As linkFixedBaseAddress
linkFixedBaseAddress FixedBaseAddress { get; set; }
property linkFixedBaseAddress FixedBaseAddress {
    linkFixedBaseAddress get ();
    void set (linkFixedBaseAddress value);
}
abstract FixedBaseAddress : linkFixedBaseAddress with get, set
function get FixedBaseAddress () : linkFixedBaseAddress
function set FixedBaseAddress (value : linkFixedBaseAddress)

属性值

类型:Microsoft.VisualStudio.VCProjectEngine.linkFixedBaseAddress
一个 linkFixedBaseAddress 值。

备注

FixedBaseAddress 公开 /FIXED(固定基址) 链接器选项的功能。

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
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")
        MsgBox("Fixed base address: " & tool.FixedBaseAddress.ToString)
    End Sub
End Module

.NET Framework 安全性

请参见

参考

VCLinkerTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间