Compartilhar via


CollectionModelBinder<TElement>.BindModel Método

Definição

Associa o modelo usando o contexto de execução e o contexto de associação especificados.

public:
 virtual bool BindModel(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
public virtual bool BindModel (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
abstract member BindModel : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> bool
override this.BindModel : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> bool
Public Overridable Function BindModel (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext) As Boolean

Parâmetros

modelBindingExecutionContext
ModelBindingExecutionContext

O contexto de execução.

bindingContext
ModelBindingContext

O contexto de associação.

Retornos

Boolean

true se o model binding for bem-sucedido; caso contrário, false.

Implementações

Aplica-se a