ModelBinderProviderContext.CreateBinder 方法

定义

重载

CreateBinder(ModelMetadata)

IModelBinder为给定metadata的 创建 。

CreateBinder(ModelMetadata, BindingInfo)

IModelBinder为给定metadata的 和 bindingInfo创建 。

CreateBinder(ModelMetadata)

Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs

IModelBinder为给定metadata的 创建 。

public:
 abstract Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ CreateBinder(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata);
abstract member CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Public MustOverride Function CreateBinder (metadata As ModelMetadata) As IModelBinder

参数

metadata
ModelMetadata

ModelMetadata模型的 。

返回

IModelBinder

适用于

CreateBinder(ModelMetadata, BindingInfo)

Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs

IModelBinder为给定metadata的 和 bindingInfo创建 。

public:
 virtual Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ CreateBinder(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::BindingInfo ^ bindingInfo);
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo bindingInfo);
abstract member CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
override this.CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Public Overridable Function CreateBinder (metadata As ModelMetadata, bindingInfo As BindingInfo) As IModelBinder

参数

metadata
ModelMetadata

ModelMetadata模型的 。

bindingInfo
BindingInfo

BindingInfo应用于创建联编程序的 。

返回

IModelBinder

适用于