Condividi tramite


ModelBinderProviderContext.CreateBinder Metodo

Definizione

Overload

CreateBinder(ModelMetadata)

Crea un oggetto IModelBinder per l'oggetto metadata specificato.

CreateBinder(ModelMetadata, BindingInfo)

Crea un IModelBinder oggetto per l'oggetto specificato metadata e bindingInfo.

CreateBinder(ModelMetadata)

Origine:
ModelBinderProviderContext.cs
Origine:
ModelBinderProviderContext.cs
Origine:
ModelBinderProviderContext.cs

Crea un oggetto IModelBinder per l'oggetto metadata specificato.

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

Parametri

metadata
ModelMetadata

Oggetto ModelMetadata per il modello.

Restituisce

Oggetto IModelBinder.

Si applica a

CreateBinder(ModelMetadata, BindingInfo)

Origine:
ModelBinderProviderContext.cs
Origine:
ModelBinderProviderContext.cs
Origine:
ModelBinderProviderContext.cs

Crea un IModelBinder oggetto per l'oggetto specificato metadata e 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

Parametri

metadata
ModelMetadata

Oggetto ModelMetadata per il modello.

bindingInfo
BindingInfo

Oggetto BindingInfo che deve essere usato per la creazione del binder.

Restituisce

Oggetto IModelBinder.

Si applica a