Sdílet prostřednictvím


ModelBinderProviderContext.CreateBinder Metoda

Definice

Přetížení

CreateBinder(ModelMetadata)

Vytvoří objekt IModelBinder pro danou metadatapoložku .

CreateBinder(ModelMetadata, BindingInfo)

Vytvoří pro danou IModelBindermetadata a bindingInfo.

CreateBinder(ModelMetadata)

Zdroj:
ModelBinderProviderContext.cs
Zdroj:
ModelBinderProviderContext.cs
Zdroj:
ModelBinderProviderContext.cs

Vytvoří objekt IModelBinder pro danou metadatapoložku .

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

Parametry

metadata
ModelMetadata

Pro ModelMetadata model.

Návraty

An IModelBinder.

Platí pro

CreateBinder(ModelMetadata, BindingInfo)

Zdroj:
ModelBinderProviderContext.cs
Zdroj:
ModelBinderProviderContext.cs
Zdroj:
ModelBinderProviderContext.cs

Vytvoří pro danou IModelBindermetadata a 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

Parametry

metadata
ModelMetadata

Pro ModelMetadata model.

bindingInfo
BindingInfo

Hodnota BindingInfo , která by měla být použita pro vytvoření pořadače.

Návraty

An IModelBinder.

Platí pro