HostBuilderContext(IDictionary<Object,Object>) 构造函数

定义

初始化 HostBuilderContext 的新实例。

public:
 HostBuilderContext(System::Collections::Generic::IDictionary<System::Object ^, System::Object ^> ^ properties);
public HostBuilderContext (System.Collections.Generic.IDictionary<object,object> properties);
new Microsoft.Extensions.Hosting.HostBuilderContext : System.Collections.Generic.IDictionary<obj, obj> -> Microsoft.Extensions.Hosting.HostBuilderContext
Public Sub New (properties As IDictionary(Of Object, Object))

参数

properties
IDictionary<Object,Object>

一个非 ,nullIDictionary<TKey,TValue> 用于在主机生成过程中在组件之间共享状态。

适用于