VCDebugSettings.PDBPath 属性
获取或设置要在其中搜索符号文件的附加目录。
命名空间: Microsoft.VisualStudio.VCProjectEngine
程序集: Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)
语法
声明
Property PDBPath As String
string PDBPath { get; set; }
property String^ PDBPath {
String^ get ();
void set (String^ value);
}
abstract PDBPath : string with get, set
function get PDBPath () : String
function set PDBPath (value : String)
属性值
类型:System.String
要在其中搜索符号文件的附加目录。有关如何编译和运行此示例的信息,请参见如何:编译项目模型扩展性示例代码。
备注
用分号分隔的目录的名称。
示例
下面的示例在集成开发环境 (ide) 中修改 PDBPath 属性 (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, tools As IVCCollection
Dim cfg As VCConfiguration
Dim tool As VCDebugSettings
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.DebugSettings
tool.PDBPath = "c:\test;d:\test"
End Sub
End Module
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。