VCCLCompilerTool.ProgramDataBaseFileName 属性

定义

获取或设置编译器生成的 .pdb 文件的名称和所需的编译器生成的 .idb 文件的基名称。 ProgramDataBaseFileName 公开编译器的 /fd (程序数据库文件名) 选项的功能。

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

属性值

String

编译器生成的 .pdb 文件的名称以及编译器生成的所需 .idb 文件的基名称。

属性

示例

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

下面的示例在 ProgramDataBaseFileName 集成开发环境 (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 VCCLCompilerTool  
        prj = DTE.Solution.Projects.Item(1).Object  
        cfgs = prj.Configurations  
        cfg = cfgs.Item(1)  
        tool = cfg.Tools("VCCLCompilerTool")  
        tool.ProgramDataBaseFileName = "$(IntDir)/MyFile2.pdb"  
    End Sub  
End Module  

适用于