ArrayModelBinder<TElement> Class

Summary

[Microsoft.AspNet.Mvc.ModelBinding.IModelBinder]() implementation for binding array values.

Inheritance Hierarchy

  • System.Object
  • Microsoft.AspNet.Mvc.ModelBinding.CollectionModelBinder{{TElement}}
  • Microsoft.AspNet.Mvc.ModelBinding.ArrayModelBinder<TElement>

Syntax

public class ArrayModelBinder<TElement> : CollectionModelBinder<TElement>, IModelBinder

GitHub

View on GitHub

Microsoft.AspNet.Mvc.ModelBinding.ArrayModelBinder<TElement>

Methods

BindModelAsync(Microsoft.AspNet.Mvc.ModelBinding.ModelBindingContext)
Arguments:
Return type:

System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ModelBinding.ModelBindingResult}

public override Task<ModelBindingResult> BindModelAsync(ModelBindingContext bindingContext)
CopyToModel(System.Object, System.Collections.Generic.IEnumerable<TElement>)
Arguments:
  • target (System.Object) –
  • sourceCollection (System.Collections.Generic.IEnumerable{{TElement}}) –
protected override void CopyToModel(object target, IEnumerable<TElement> sourceCollection)
Microsoft.AspNet.Mvc.ModelBinding.ArrayModelBinder<TElement>.CreateEmptyCollection()
Return type:System.Object
protected override object CreateEmptyCollection()
GetModel(System.Collections.Generic.IEnumerable<TElement>)
Arguments:
  • newCollection (System.Collections.Generic.IEnumerable{{TElement}}) –
Return type:

System.Object

protected override object GetModel(IEnumerable<TElement> newCollection)