共用方式為


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

適用於