MemberInfo.IsCollectible 屬性

定義

取得指出此 MemberInfo 物件是否為可回收 AssemblyLoadContext 中保存之組件一部分的值。Gets a value that indicates whether this MemberInfo object is part of an assembly 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 如果 MemberInfo 是包含在可回收元件載入內容中之元件的一部分,則為,否則為 falsetrue if the MemberInfo is part of an assembly held in a collectible assembly load context; otherwise, false.

備註

如需詳細資訊,請參閱 如何在 .Net Core 中使用和偵錯工具集卸載功能For more information, see How to use and debug assembly unloadability in .NET Core.

適用於