Assembly.IsCollectible 屬性

定義

取得指出此組件是否在可回收 AssemblyLoadContext 中保存的值。

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

屬性值

true 如果這個元件保留在可 AssemblyLoadContext收集的 中,則為 , false否則為 。

備註

如需詳細資訊,請參閱 如何在 .NET Core 中使用和偵錯元件卸除性

適用於