FromRouteAttribute 类

定义

指定应使用当前请求中的路由数据来绑定参数或属性。

public ref class FromRouteAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBindingSourceMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelNameProvider
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class FromRouteAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type FromRouteAttribute = class
    inherit Attribute
    interface IBindingSourceMetadata
    interface IModelNameProvider
Public Class FromRouteAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IModelNameProvider
继承
FromRouteAttribute
属性
实现

构造函数

FromRouteAttribute()

属性

BindingSource
Name

适用于