Class HttpQueryStringModelBinder
Allows an Action to execute with an arbitrary number of QueryStrings
Inheritance
Namespace: Umbraco.Cms.Web.Common.ModelBinders
Assembly: Umbraco.Web.Common.dll
Syntax
public sealed class HttpQueryStringModelBinder
Remarks
Just like you can POST an arbitrary number of parameters to an Action, you can't GET an arbitrary number but this will allow you to do it.
Methods
View SourceBindModelAsync(ModelBindingContext)
Attempts to bind a model.
Declaration
public Task BindModelAsync(ModelBindingContext bindingContext)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelBindingContext | bindingContext | The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext. |
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task which will complete when the model binding process completes.
If model binding was successful, the Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.Result should have
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult.IsModelSet set to A model binder that completes successfully should set Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.Result to a value returned from Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult.Success(object). |