VCConfiguration.ProgramDatabase 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取配置生成的程序数据库(如果有)。
public:
property System::String ^ ProgramDatabase { System::String ^ get(); };
public:
property Platform::String ^ ProgramDatabase { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(723)]
public string ProgramDatabase { [System.Runtime.InteropServices.DispId(723)] get; }
[<System.Runtime.InteropServices.DispId(723)>]
[<get: System.Runtime.InteropServices.DispId(723)>]
member this.ProgramDatabase : string
Public ReadOnly Property ProgramDatabase As String
属性值
配置生成的程序数据库。
- 属性
示例
有关如何编译和运行此示例的信息,请参阅 如何:编译项目模型扩展性的示例代码 。
下面的示例在 ProgramDatabase 集成开发环境 (IDE) 中修改属性。
' 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 As IVCCollection
Dim cfg As VCConfiguration
Dim MyDbg As VCDebugSettings
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
MyString = cfg.ProgramDatabase
End Sub
End Module
注解
若要修改此属性,请修改生成最终输出的工具的相应设置。 这通常是链接器或管理员工具。