AssemblyLoadContext.Unload AssemblyLoadContext.Unload AssemblyLoadContext.Unload AssemblyLoadContext.Unload Method

定义

开始卸载此 AssemblyLoadContextInitiates an unload of this AssemblyLoadContext.

public:
 void Unload();
public void Unload ();
member this.Unload : unit -> unit
Public Sub Unload ()

异常

注解

  • AssemblyLoadContext 只能在可回收后卸载。An AssemblyLoadContext can only be unloaded if it is collectible.
  • 卸载将以异步方式进行。Unloading will occur asynchronously.
  • 当存在对 AssemblyLoadContext 的引用时,将不会进行卸载。Unloading will not occur while there are references to the AssemblyLoadContext.

适用于