共用方式為


ICustomAssembly.SourcePath 屬性

取得或設定要包含在封裝中的組件名稱和路徑。 這可以是絕對路徑,或相對於封裝之專案根目錄的路徑。

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

語法

'宣告
Property SourcePath As String
    Get
    Set
string SourcePath { get; set; }

屬性值

型別:System.String
表示組件路徑和名稱的字串。

備註

下列是相對與絕對路徑的比較:

相對路徑: \Project\Bin\Debug\SiblingProject.dll。

絕對路徑:R:\Folder\Project\Bin\Debug\OtherProject.dll。

如需詳細資訊,請參閱 ASP.NET 網站路徑 (英文)。

.NET Framework 安全性

請參閱

參考

ICustomAssembly 介面

Microsoft.VisualStudio.SharePoint.Packages 命名空間