BuildManager.GetCompiledAssembly(String) 方法
定义
使用指定虚拟路径将文件编译为程序集。Compiles a file into an assembly using the specified virtual path.
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
要生成为程序集的虚拟路径。The virtual path to build into an assembly.
返回
从指定的虚拟路径进行编译并缓存到内存或磁盘的 Assembly 对象。An Assembly object that is compiled from the specified virtual path, which is cached to either memory or to disk.