ModelExplorer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ModelExplorer(IModelMetadataProvider, ModelMetadata, Object)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
创建一个新的 ModelExplorer。
public:
ModelExplorer(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::Object ^ model);
public ModelExplorer (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Sub New (metadataProvider As IModelMetadataProvider, metadata As ModelMetadata, model As Object)
参数
- metadataProvider
- IModelMetadataProvider
- metadata
- ModelMetadata
- model
- Object
对象模型。 可为 null
。
适用于
ModelExplorer(IModelMetadataProvider, ModelExplorer, ModelMetadata, Func<Object,Object>)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
创建一个新的 ModelExplorer。
public:
ModelExplorer(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ container, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Func<System::Object ^, System::Object ^> ^ modelAccessor);
public ModelExplorer (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer container, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Func<object,object> modelAccessor);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Func<obj, obj> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Sub New (metadataProvider As IModelMetadataProvider, container As ModelExplorer, metadata As ModelMetadata, modelAccessor As Func(Of Object, Object))
参数
- metadataProvider
- IModelMetadataProvider
- container
- ModelExplorer
容器 ModelExplorer。
- metadata
- ModelMetadata
适用于
ModelExplorer(IModelMetadataProvider, ModelExplorer, ModelMetadata, Object)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
创建一个新的 ModelExplorer。
public:
ModelExplorer(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ container, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::Object ^ model);
public ModelExplorer (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer container, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model);
new Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Sub New (metadataProvider As IModelMetadataProvider, container As ModelExplorer, metadata As ModelMetadata, model As Object)
参数
- metadataProvider
- IModelMetadataProvider
- container
- ModelExplorer
容器 ModelExplorer。
- metadata
- ModelMetadata
- model
- Object
对象模型。 可为 null
。