共用方式為


ISharePointProjectMemberReference.ProjectPath 屬性

取得被參考項目所屬專案檔案的路徑。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
ReadOnly Property ProjectPath As String
    Get
string ProjectPath { get; }

屬性值

型別:System.String
表示專案檔案路徑的字串。

備註

此路徑應該相對於目前的專案。 也就是指參考的所屬專案,而非參考之項目的所屬專案。

如果路徑為 nullNull 參照 (即 Visual Basic 中的 Nothing) 或空白,則會假定為目前的專案。

路徑可以是絕對的,但這不是建議做法,因為在特定開發系統嘗試方案具有風險。

.NET Framework 安全性

請參閱

參考

ISharePointProjectMemberReference 介面

Microsoft.VisualStudio.SharePoint 命名空間