AssemblyLoadContext Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AssemblyLoadContext() |
Initializes a new instance of the AssemblyLoadContext class. |
AssemblyLoadContext(Boolean) |
Initializes a new instance of the AssemblyLoadContext class with a value that indicates whether unloading is enabled. |
AssemblyLoadContext(String, Boolean) |
Initializes a new instance of the AssemblyLoadContext class with a name and a value that indicates whether unloading is enabled. |
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
Initializes a new instance of the AssemblyLoadContext class.
protected:
AssemblyLoadContext();
protected AssemblyLoadContext();
Protected Sub New ()
Remarks
This constructor is protected. It can only be called from the AssemblyLoadContext class or its derived classes.
Applies to
.NET 10 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
Initializes a new instance of the AssemblyLoadContext class with a value that indicates whether unloading is enabled.
protected:
AssemblyLoadContext(bool isCollectible);
protected AssemblyLoadContext(bool isCollectible);
new System.Runtime.Loader.AssemblyLoadContext : bool -> System.Runtime.Loader.AssemblyLoadContext
Protected Sub New (isCollectible As Boolean)
Parameters
- isCollectible
- Boolean
true
to enable Unload(); otherwise, false
. The default value is false
because there is a performance cost associated with enabling unloading.
Remarks
This constructor is protected. It can only be called from the AssemblyLoadContext class or its derived classes.
Applies to
.NET 10 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
- Source:
- AssemblyLoadContext.cs
Initializes a new instance of the AssemblyLoadContext class with a name and a value that indicates whether unloading is enabled.
public AssemblyLoadContext(string? name, bool isCollectible = false);
new System.Runtime.Loader.AssemblyLoadContext : string * bool -> System.Runtime.Loader.AssemblyLoadContext
Public Sub New (name As String, Optional isCollectible As Boolean = false)
Parameters
- isCollectible
- Boolean
true
to enable Unload(); otherwise, false
. The default value is false
because there is a performance cost associated with enabling unloading.
Applies to
.NET 10 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: