AssemblyBuilder.IsCollectible 屬性

定義

取得值,這個值表示這個動態元件是否保留在可 AssemblyLoadContext 收集的 中。

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

屬性值

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

備註

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

適用於