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

適用於