共用方式為


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> 主機建置程式期間,用於在元件之間共享狀態的非 。

適用於