Assembly.GlobalAssemblyCache 屬性

定義

警告

The Global Assembly Cache is not supported.

取得值,指出元件是否只從全域程式集緩存載入 (.NET Framework) 。

C#
[System.Obsolete("The Global Assembly Cache is not supported.", DiagnosticId="SYSLIB0005", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public virtual bool GlobalAssemblyCache { get; }
C#
public virtual bool GlobalAssemblyCache { get; }
C#
public bool GlobalAssemblyCache { get; }

屬性值

僅 .NET Framework:true如果元件是從全域程式集緩存載入,則為 ,false否則為 。

.NET Core 和 .NET 5 和更新版本: false 在所有情況下。

實作

屬性

備註

從 .NET 5 開始,這個屬性會標示為過時,併產生編譯時期警告。

適用於

產品 版本 (已過時)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1 (5, 6, 7, 8, 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1