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)]
public class FromRouteAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IFromRouteMetadata, 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
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type FromRouteAttribute = class
    inherit Attribute
    interface IBindingSourceMetadata
    interface IModelNameProvider
    interface IFromRouteMetadata
Public Class FromRouteAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IModelNameProvider
Public Class FromRouteAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IFromRouteMetadata, IModelNameProvider
继承
FromRouteAttribute
属性
实现

构造函数

FromRouteAttribute()

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

属性

BindingSource

获取 BindingSource

Name

RouteValues 名称。

适用于