Freigeben über


ModelBinderProviderContext.CreateBinder Methode

Definition

Überlädt

CreateBinder(ModelMetadata)

Erstellt ein IModelBinder für das angegebene metadata.

CreateBinder(ModelMetadata, BindingInfo)

Erstellt eine IModelBinder für die angegebene metadata und bindingInfo.

CreateBinder(ModelMetadata)

Quelle:
ModelBinderProviderContext.cs
Quelle:
ModelBinderProviderContext.cs

Erstellt ein IModelBinder für das angegebene 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

Parameter

metadata
ModelMetadata

Der ModelMetadata für das Modell.

Gibt zurück

IModelBinder.

Gilt für:

CreateBinder(ModelMetadata, BindingInfo)

Quelle:
ModelBinderProviderContext.cs
Quelle:
ModelBinderProviderContext.cs

Erstellt eine IModelBinder für die angegebene metadata und 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

Parameter

metadata
ModelMetadata

Der ModelMetadata für das Modell.

bindingInfo
BindingInfo

Die BindingInfo , die zum Erstellen des Binders verwendet werden soll.

Gibt zurück

IModelBinder.

Gilt für: