ModelBindingContextExtensions Class
HAKOM.Serialization.Http.Net.Api.Extensions
Section titled “HAKOM.Serialization.Http.Net.Api.Extensions”Provides extension methods for Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext related to tracking bound query parameters.
public static class ModelBindingContextExtensionsInheritance System.Object 🡒 ModelBindingContextExtensions
Methods
Section titled “Methods”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);Parameters
Section titled “Parameters”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.
Was this page helpful?Thanks for your feedback!