BuildManager.GetCompiledAssembly(String) 方法

定义

使用指定的虚拟路径将文件编译为程序集。

public:
 static System::Reflection::Assembly ^ GetCompiledAssembly(System::String ^ virtualPath);
public static System.Reflection.Assembly GetCompiledAssembly(string virtualPath);
static member GetCompiledAssembly : string -> System.Reflection.Assembly
Public Shared Function GetCompiledAssembly (virtualPath As String) As Assembly

参数

virtualPath
String

要生成到程序集中的虚拟路径。

返回

Assembly从指定的虚拟路径编译的对象,该路径缓存到内存或磁盘。

适用于

另请参阅