Redigera

Dela via


AssemblyLoadContext Constructors

Definition

Overloads

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.

AssemblyLoadContext()

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

AssemblyLoadContext(Boolean)

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

AssemblyLoadContext(String, Boolean)

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

name
String

The value for Name in the new instance. Its value can be null.

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