通过指定的文件路径将 AssemblyReference 对象添加到 AssemblyReferences 集合中。
命名空间:  VsWebSite
程序集:  VsWebSite.Interop(在 VsWebSite.Interop.dll 中)
语法
声明
Function AddFromFile ( _
    bstrPath As String _
) As AssemblyReference
AssemblyReference AddFromFile(
    string bstrPath
)
AssemblyReference^ AddFromFile(
    [InAttribute] String^ bstrPath
)
abstract AddFromFile : 
        bstrPath:string -> AssemblyReference 
function AddFromFile(
    bstrPath : String
) : AssemblyReference
参数
- bstrPath
 类型:System.String
 要添加的 .dll 文件的路径。
返回值
类型:VsWebSite.AssemblyReference
AssemblyReference 对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。