AssemblyLoadContext.Unload 方法

定义

开始卸载此 AssemblyLoadContext

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

例外

不允许卸载。

注解

  • 仅当程序集可收集时,才能卸载 AssemblyLoadContext。
  • 卸载将以异步方式进行。
  • 当对 AssemblyLoadContext 有引用时,不会发生卸载。

适用于