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 開始,這個屬性會標示為過時,並產生編譯時間警告。

適用於