DependencyContext 构造函数

定义

初始化 DependencyContext 类的新实例。

public:
 DependencyContext(Microsoft::Extensions::DependencyModel::TargetInfo ^ target, Microsoft::Extensions::DependencyModel::CompilationOptions ^ compilationOptions, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::CompilationLibrary ^> ^ compileLibraries, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::RuntimeLibrary ^> ^ runtimeLibraries, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::RuntimeFallbacks ^> ^ runtimeGraph);
public DependencyContext (Microsoft.Extensions.DependencyModel.TargetInfo target, Microsoft.Extensions.DependencyModel.CompilationOptions compilationOptions, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.CompilationLibrary> compileLibraries, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.RuntimeLibrary> runtimeLibraries, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.RuntimeFallbacks> runtimeGraph);
new Microsoft.Extensions.DependencyModel.DependencyContext : Microsoft.Extensions.DependencyModel.TargetInfo * Microsoft.Extensions.DependencyModel.CompilationOptions * seq<Microsoft.Extensions.DependencyModel.CompilationLibrary> * seq<Microsoft.Extensions.DependencyModel.RuntimeLibrary> * seq<Microsoft.Extensions.DependencyModel.RuntimeFallbacks> -> Microsoft.Extensions.DependencyModel.DependencyContext
Public Sub New (target As TargetInfo, compilationOptions As CompilationOptions, compileLibraries As IEnumerable(Of CompilationLibrary), runtimeLibraries As IEnumerable(Of RuntimeLibrary), runtimeGraph As IEnumerable(Of RuntimeFallbacks))

参数

target
TargetInfo

目标运行时信息。

compilationOptions
CompilationOptions

编译选项。

compileLibraries
IEnumerable<CompilationLibrary>

编译库。

runtimeLibraries
IEnumerable<RuntimeLibrary>

运行时库。

runtimeGraph
IEnumerable<RuntimeFallbacks>

运行时标识符图。

适用于