Sdílet prostřednictvím


ArrayModelBinderProvider.GetBinder Metoda

Definice

Vrátí pořadač modelu pro pole.

public:
 override System::Web::ModelBinding::IModelBinder ^ GetBinder(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
public override System.Web.ModelBinding.IModelBinder GetBinder (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
override this.GetBinder : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> System.Web.ModelBinding.IModelBinder
Public Overrides Function GetBinder (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext) As IModelBinder

Parametry

modelBindingExecutionContext
ModelBindingExecutionContext

Kontext spuštění.

bindingContext
ModelBindingContext

Kontext vazby.

Návraty

Objekt pořadače modelu nebo null pokud pokus o získání pořadače modelu není úspěšný.

Poznámky

Pokus o získání pořadače modelu bude neúspěšný, pokud je model jen pro čtení, pokud model není typem pole nebo pokud metoda zprostředkovatele ContainsPrefix hodnoty vrátí false.

Platí pro