DependencyContext.Load(Assembly) 方法

定义

加载指定程序集的依赖项上下文。

public:
 static Microsoft::Extensions::DependencyModel::DependencyContext ^ Load(System::Reflection::Assembly ^ assembly);
public static Microsoft.Extensions.DependencyModel.DependencyContext? Load (System.Reflection.Assembly assembly);
static member Load : System.Reflection.Assembly -> Microsoft.Extensions.DependencyModel.DependencyContext
Public Shared Function Load (assembly As Assembly) As DependencyContext

参数

assembly
Assembly

要为其加载依赖项上下文的程序集。

返回

指定程序集的依赖项上下文,或者在 null 依赖项上下文不可用时。

适用于