AssemblyLoadContext.LoadFromStream AssemblyLoadContext.LoadFromStream AssemblyLoadContext.LoadFromStream Method

定义

重载

LoadFromStream(Stream) LoadFromStream(Stream) LoadFromStream(Stream)

加载带有基于通用对象文件格式 (COFF) 的映像的程序集,该映像包含托管程序集。Loads the assembly with a common object file format (COFF)-based image containing a managed assembly.

LoadFromStream(Stream, Stream) LoadFromStream(Stream, Stream) LoadFromStream(Stream, Stream)

加载带有基于通用对象文件格式 (COFF) 的映像的程序集,此映像包含托管程序集,并且还可以选择包括程序集的符号。Loads the assembly with a common object file format (COFF)-based image containing a managed assembly, optionally including symbols for the assembly.

LoadFromStream(Stream) LoadFromStream(Stream) LoadFromStream(Stream)

加载带有基于通用对象文件格式 (COFF) 的映像的程序集,该映像包含托管程序集。Loads the assembly with a common object file format (COFF)-based image containing a managed assembly.

public:
 System::Reflection::Assembly ^ LoadFromStream(System::IO::Stream ^ assembly);
public System.Reflection.Assembly LoadFromStream (System.IO.Stream assembly);
member this.LoadFromStream : System.IO.Stream -> System.Reflection.Assembly

参数

assembly
Stream Stream Stream

字节数组,它是包含托管程序集的基于 COFF 的映像。A byte array that is a COFF-based image containing a managed assembly.

返回

加载的程序集。The loaded assembly.

异常

assemblynullassembly is null.

assembly 不是有效的程序集。assembly is not a valid assembly.

LoadFromStream(Stream, Stream) LoadFromStream(Stream, Stream) LoadFromStream(Stream, Stream)

加载带有基于通用对象文件格式 (COFF) 的映像的程序集,此映像包含托管程序集,并且还可以选择包括程序集的符号。Loads the assembly with a common object file format (COFF)-based image containing a managed assembly, optionally including symbols for the assembly.

public:
 System::Reflection::Assembly ^ LoadFromStream(System::IO::Stream ^ assembly, System::IO::Stream ^ assemblySymbols);
public System.Reflection.Assembly LoadFromStream (System.IO.Stream assembly, System.IO.Stream assemblySymbols);
member this.LoadFromStream : System.IO.Stream * System.IO.Stream -> System.Reflection.Assembly

参数

assembly
Stream Stream Stream

字节数组,它是包含托管程序集的基于 COFF 的映像。A byte array that is a COFF-based image containing a managed assembly.

assemblySymbols
Stream Stream Stream

包含表示程序集符号的原始字节的字节数组。A byte array that contains the raw bytes representing the symbols for the assembly.

返回

加载的程序集。The loaded assembly.

异常

assemblynullassembly is null.

assembly 不是有效的程序集。assembly is not a valid assembly.

适用于