ParameterBinder.BindModelAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
BindModelAsync(ActionContext, IValueProvider, ParameterDescriptor)
- Origine:
- ParameterBinder.cs
- Origine:
- ParameterBinder.cs
Attenzione
This method overload is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes IModelBinder, ModelMetadata and Object parameters.
Questo overload del metodo è obsoleto e verrà rimosso in una versione futura. L'alternativa consigliata è BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object).
Inizializza e associa un modello specificato da parameter
.
public:
System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingResult> ^ BindModelAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Microsoft::AspNetCore::Mvc::Abstractions::ParameterDescriptor ^ parameter);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter);
[System.Obsolete("This method overload is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes IModelBinder, ModelMetadata and Object parameters.")]
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter);
member this.BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
[<System.Obsolete("This method overload is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes IModelBinder, ModelMetadata and Object parameters.")>]
member this.BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
Public Function BindModelAsync (actionContext As ActionContext, valueProvider As IValueProvider, parameter As ParameterDescriptor) As Task(Of ModelBindingResult)
Parametri
- actionContext
- ActionContext
Oggetto ActionContext.
- valueProvider
- IValueProvider
Oggetto IValueProvider.
- parameter
- ParameterDescriptor
Il tipo ParameterDescriptor
Restituisce
Risultato dell'associazione di modelli.
- Attributi
Si applica a
BindModelAsync(ActionContext, IValueProvider, ParameterDescriptor, Object)
- Origine:
- ParameterBinder.cs
- Origine:
- ParameterBinder.cs
Attenzione
This method overload is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes IModelBinder and ModelMetadata parameters.
Questo overload del metodo è obsoleto e verrà rimosso in una versione futura. L'alternativa consigliata è BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object).
Associa un modello specificato utilizzando parameter
value
come valore iniziale.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingResult> ^ BindModelAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Microsoft::AspNetCore::Mvc::Abstractions::ParameterDescriptor ^ parameter, System::Object ^ value);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, object value);
[System.Obsolete("This method overload is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes IModelBinder and ModelMetadata parameters.")]
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, object value);
abstract member BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
override this.BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
[<System.Obsolete("This method overload is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes IModelBinder and ModelMetadata parameters.")>]
abstract member BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
override this.BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
Public Overridable Function BindModelAsync (actionContext As ActionContext, valueProvider As IValueProvider, parameter As ParameterDescriptor, value As Object) As Task(Of ModelBindingResult)
Parametri
- actionContext
- ActionContext
Oggetto ActionContext.
- valueProvider
- IValueProvider
Oggetto IValueProvider.
- parameter
- ParameterDescriptor
Il tipo ParameterDescriptor
- value
- Object
Valore del modello iniziale.
Restituisce
Risultato dell'associazione di modelli.
- Attributi
Si applica a
BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object)
- Origine:
- ParameterBinder.cs
- Origine:
- ParameterBinder.cs
- Origine:
- ParameterBinder.cs
Associa un modello specificato utilizzando parameter
value
come valore iniziale.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingResult> ^ BindModelAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ modelBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Microsoft::AspNetCore::Mvc::Abstractions::ParameterDescriptor ^ parameter, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::Object ^ value);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder modelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object value);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder modelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object? value);
abstract member BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
override this.BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
Public Overridable Function BindModelAsync (actionContext As ActionContext, modelBinder As IModelBinder, valueProvider As IValueProvider, parameter As ParameterDescriptor, metadata As ModelMetadata, value As Object) As Task(Of ModelBindingResult)
Parametri
- actionContext
- ActionContext
Oggetto ActionContext.
- modelBinder
- IModelBinder
Oggetto IModelBinder.
- valueProvider
- IValueProvider
Oggetto IValueProvider.
- parameter
- ParameterDescriptor
Il tipo ParameterDescriptor
- metadata
- ModelMetadata
Oggetto ModelMetadata.
- value
- Object
Valore del modello iniziale.
Restituisce
Risultato dell'associazione di modelli.
Si applica a
BindModelAsync(ActionContext, IModelBinder, IValueProvider, ParameterDescriptor, ModelMetadata, Object, Object)
- Origine:
- ParameterBinder.cs
Associa un modello specificato utilizzando parameter
value
come valore iniziale.
public:
virtual System::Threading::Tasks::ValueTask<Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingResult> BindModelAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ modelBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Microsoft::AspNetCore::Mvc::Abstractions::ParameterDescriptor ^ parameter, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::Object ^ value, System::Object ^ container);
public virtual System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder modelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object value, object container);
public virtual System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult> BindModelAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder modelBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor parameter, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object? value, object? container);
abstract member BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj * obj -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
override this.BindModelAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj * obj -> System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
Public Overridable Function BindModelAsync (actionContext As ActionContext, modelBinder As IModelBinder, valueProvider As IValueProvider, parameter As ParameterDescriptor, metadata As ModelMetadata, value As Object, container As Object) As ValueTask(Of ModelBindingResult)
Parametri
- actionContext
- ActionContext
Oggetto ActionContext.
- modelBinder
- IModelBinder
Oggetto IModelBinder.
- valueProvider
- IValueProvider
Oggetto IValueProvider.
- parameter
- ParameterDescriptor
Il tipo ParameterDescriptor
- metadata
- ModelMetadata
Oggetto ModelMetadata.
- value
- Object
Valore del modello iniziale.
- container
- Object
Contenitore per il modello.
Restituisce
Risultato dell'associazione di modelli.