Bagikan melalui


Assembly.GlobalAssemblyCache Properti

Definisi

Perhatian

The Global Assembly Cache is not supported.

Mendapatkan nilai yang menunjukkan apakah assembly dimuat dari cache assembly global (hanya .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

Nilai Properti

.NET Framework saja: true jika assembly dimuat dari cache assembly global; jika tidak, false.

.NET Core dan .NET 5 dan yang lebih baru: false dalam semua kasus.

Penerapan

Atribut

Keterangan

Properti ini ditandai usang mulai dari .NET 5, dan menghasilkan peringatan waktu kompilasi.

Berlaku untuk