Assembly.GlobalAssemblyCache 属性

定义

注意

The Global Assembly Cache is not supported.

获取一个值,该值指示程序集是否已从全局程序集缓存加载 (仅 .NET Framework) 。

public:
 virtual property bool GlobalAssemblyCache { bool get(); };
public:
 property bool GlobalAssemblyCache { bool get(); };
[System.Obsolete("The Global Assembly Cache is not supported.", DiagnosticId="SYSLIB0005", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual bool GlobalAssemblyCache { get; }
public virtual bool GlobalAssemblyCache { get; }
public bool GlobalAssemblyCache { get; }
[<System.Obsolete("The Global Assembly Cache is not supported.", DiagnosticId="SYSLIB0005", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.GlobalAssemblyCache : bool
member this.GlobalAssemblyCache : bool
Public Overridable ReadOnly Property GlobalAssemblyCache As Boolean
Public ReadOnly Property GlobalAssemblyCache As Boolean

属性值

Boolean

仅 .NET Framework: true 如果程序集是从全局程序集缓存加载的,则为; 否则为 false

.NET Core 和 .NET 5 及更高版本: false 在所有情况下。

实现

属性

注解

从 .NET 5 开始,此属性被标记为已过时,并生成编译时警告。

适用于