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.

适用于