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 : bool
member this.GlobalAssemblyCache : bool
Public Overridable ReadOnly Property GlobalAssemblyCache As Boolean
Public ReadOnly Property GlobalAssemblyCache As Boolean
屬性值
僅限 Framework .NET:若組合語言是從全域組合快取載入,則為 true;否則則為 false。
.NET Core 及 .NET 5 及以後版本:所有情況下皆為 false。
實作
- 屬性
備註
此特性自 .NET 5 起被標記為過時,並會產生編譯時警告。