Assembly.GlobalAssemblyCache Property

Definition

Gets a value indicating whether the assembly was loaded from the global assembly cache (.NET Framework only).

public:
 property bool GlobalAssemblyCache { bool get(); };
public:
 virtual property bool GlobalAssemblyCache { bool get(); };
public bool GlobalAssemblyCache { get; }
public virtual bool GlobalAssemblyCache { get; }
member this.GlobalAssemblyCache : bool
Public ReadOnly Property GlobalAssemblyCache As Boolean
Public Overridable ReadOnly Property GlobalAssemblyCache As Boolean

Property Value

.NET Framework only: true if the assembly was loaded from the global assembly cache; otherwise, false.

.NET Core and .NET 5 and later: false in all cases.

Implements

Remarks

This property is marked obsolete starting in .NET 5, and generates a compile-time warning.

Applies to