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 开始标记为已过时,并生成编译时警告。

适用于