Skip to content
Documentation

ModelBindingContextExtensions Class

Provides extension methods for Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext related to tracking bound query parameters.

public static class ModelBindingContextExtensions

Inheritance System.Object 🡒 ModelBindingContextExtensions

ModelBindingContextExtensions.SetBoundQueryParameters(this ModelBindingContext, IEnumerable<string>) Method

Section titled “ModelBindingContextExtensions.SetBoundQueryParameters(this ModelBindingContext, IEnumerable<string>) Method”

Records the specified queryParameters as having been bound for the current model in the HttpContext.

public static void SetBoundQueryParameters(this Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext, System.Collections.Generic.IEnumerable<string> queryParameters);

bindingContext Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext

The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext for the current binding operation.

queryParameters System.Collections.Generic.IEnumerable<System.String>

The names of the query parameters that were bound.

© 2026 Volue.Version v0.6.38017 November 2026