Assembly.GlobalAssemblyCache 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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 : boolmember this.GlobalAssemblyCache : boolPublic Overridable ReadOnly Property GlobalAssemblyCache As BooleanPublic ReadOnly Property GlobalAssemblyCache As Boolean属性值
仅.NET Framework:true如果程序集是从全局程序集缓存加载的,则为 ;否则为 false。
.NET Core 和 .NET 5 及更高版本: false 在所有情况下。
实现
- 属性
注解
此属性从 .NET 5 开始标记为已过时,并生成编译时警告。