RouteValueProvider Class¶
An Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider adapter for data stored in an Microsoft.AspNetCore.Routing.RouteValueDictionary.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class RouteValueProvider : BindingSourceValueProvider, IBindingSourceValueProvider, IValueProvider
-
class
Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider
Constructors¶
-
RouteValueProvider(Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource, Microsoft.AspNetCore.Routing.RouteValueDictionary)¶ Creates a new
Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider.Arguments: - bindingSource (Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource) – The
Microsoft.AspNetCore.Mvc.ModelBinding.BindingSourceof the data. - values (Microsoft.AspNetCore.Routing.RouteValueDictionary) – The values.
public RouteValueProvider(BindingSource bindingSource, RouteValueDictionary values)
- bindingSource (Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource) – The
-
Methods¶
-
ContainsPrefix(System.String)¶ Return type: System.Boolean public override bool ContainsPrefix(string key)
-
GetValue(System.String)¶ Return type: Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult public override ValueProviderResult GetValue(string key)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ModelBinding.RouteValueProvider.PrefixContainer¶ Return type: Microsoft.AspNetCore.Mvc.Internal.PrefixContainer protected PrefixContainer PrefixContainer { get; }
-