Search Results for

    Show / Hide Table of Contents
    View Source

    Class HttpQueryStringModelBinder

    Allows an Action to execute with an arbitrary number of QueryStrings

    Inheritance
    object
    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 Source

    BindModelAsync(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 true.

    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).

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX