Bagikan melalui


CollectionModelBinderProvider.GetBinder Metode

Definisi

Mengembalikan pengikat model untuk koleksi.

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

Parameter

modelBindingExecutionContext
ModelBindingExecutionContext

Konteks eksekusi.

bindingContext
ModelBindingContext

Konteks pengikatan.

Mengembalikan

Pengikat model, atau null jika upaya untuk mendapatkan pengikat model tidak berhasil.

Berlaku untuk