FromServicesAttribute Class¶
Specifies that an action parameter should be bound using the request services.
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.ObjectSystem.AttributeMicrosoft.AspNetCore.Mvc.FromServicesAttribute
Syntax¶
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class FromServicesAttribute : Attribute, _Attribute, IBindingSourceMetadata
-
class
Microsoft.AspNetCore.Mvc.FromServicesAttribute
Properties¶
-
Microsoft.AspNetCore.Mvc.FromServicesAttribute.BindingSource¶ Return type: Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource public BindingSource BindingSource { get; }
-