VCLinkerTool.ForceSymbolReferences 属性

定义

获取或设置链接器或库管理器,以包含对此符号的引用。

public:
 property System::String ^ ForceSymbolReferences { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ ForceSymbolReferences { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(26)]
public string ForceSymbolReferences { [System.Runtime.InteropServices.DispId(26)] get; [System.Runtime.InteropServices.DispId(26)] set; }
[<System.Runtime.InteropServices.DispId(26)>]
[<get: System.Runtime.InteropServices.DispId(26)>]
[<set: System.Runtime.InteropServices.DispId(26)>]
member this.ForceSymbolReferences : string with get, set
Public Property ForceSymbolReferences As String

属性值

String

一个表示符号引用的字符串。

属性

示例

下面的示例在集成开发环境 (IDE) 中修改/INCLUDE 库选项:

' add reference to Microsoft.VisualStudio.VCProjectEngine  
Imports EnvDTE  
Imports Microsoft.VisualStudio.VCProjectEngine  

Public Module Module1  
    Sub Test()  
        Dim mystring As String  
        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("VCLibrarianTool")  
        tool.ForceSymbolReferences = "symbol1,symbol2"  
    End Sub  
End Module  

注解

ForceSymbolReferences 公开链接器的 /INCLUDE (强制符号引用) 选项或管理员 生成导入库和导出文件 选项的功能。

用逗号或分号分隔符号名称。

适用于