VCProjectConfigurationProperties.PDBPath 屬性
要搜尋符號檔的其他目錄。
命名空間: Microsoft.VisualStudio.VCProject
組件: Microsoft.VisualStudio.VCProject (在 Microsoft.VisualStudio.VCProject.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
要搜尋符號檔的目錄。
備註
請以分號分隔目錄名稱。
如需這個範例的編譯與執行等詳細資訊,請參閱 HOW TO:編譯專案模型擴充性的範例程式碼。
範例
[Visual Basic]
下列程式碼範例會修改PDBPath在開發環境中的屬性:
' 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。