AssemblyLoadContext Constructors
Definition
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.
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
- 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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기