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(); };
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; }
[<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 開始,這個屬性會標示為過時,併產生編譯時期警告。
產品 | 版本 (已過時) |
---|---|
.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 |