AssemblyLoadContext.IsCollectible 属性

定义

获取一个值,该值指示此 AssemblyLoadContext 是否可回收。Gets a value that indicates whether this AssemblyLoadContext is collectible.

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

属性值

Boolean

true 如果此 AssemblyLoadContext 为可回收,则为; 否则为 falsetrue if this AssemblyLoadContext is collectible; otherwise, false. 如果未在构造函数中指定值,则该值为 falseIf a value is not specified in the constructor, the value is false.

注解

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

适用于