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 Web Site Paths(ASP.NET 网站路径)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。