Assembly.IsCollectible 属性

定义

获取一个值,该值指示此程序集是否保留在可回收的 AssemblyLoadContext 中。Gets a value that indicates whether this assembly is held in a collectible AssemblyLoadContext.

public:
 virtual property bool IsCollectible { bool get(); };
public virtual bool IsCollectible { get; }
member this.IsCollectible : bool
Public Overridable ReadOnly Property IsCollectible As Boolean

属性值

Boolean

true 如果此程序集保存在可回收的中 AssemblyLoadContext ,则为; 否则为 falsetrue if this assembly is held in a collectible AssemblyLoadContext; otherwise, false.

注解

有关详细信息,请参阅如何在 .NET Core 中使用和调试程序集可卸载性For more information, see How to use and debug assembly unloadability in .NET Core.

适用于