共用方式為


ViewDataDictionaryControllerPropertyActivator(IModelMetadataProvider) 建構函式

定義

初始化 ViewDataDictionaryControllerPropertyActivator 的新執行個體。

public:
 ViewDataDictionaryControllerPropertyActivator(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider);
public ViewDataDictionaryControllerPropertyActivator (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionaryControllerPropertyActivator : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionaryControllerPropertyActivator
Public Sub New (modelMetadataProvider As IModelMetadataProvider)

參數

modelMetadataProvider
IModelMetadataProvider

要使用的 IModelMetadataProvider

適用於