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

属性值

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

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

实现

属性

注解

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

适用于