FromUriAttribute 類別

定義

屬性,指定值可以從查詢字串或路由資料系結。

[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public class FromUriAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IOptionalBinderMetadata
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)>]
type FromUriAttribute = class
    inherit Attribute
    interface IOptionalBinderMetadata
    interface IBindingSourceMetadata
    interface IModelNameProvider
Public Class FromUriAttribute
Inherits Attribute
Implements IBindingSourceMetadata, IModelNameProvider, IOptionalBinderMetadata
繼承
FromUriAttribute
屬性
實作

建構函式

FromUriAttribute()

初始化 FromUriAttribute 類別的新執行個體。

屬性

BindingSource

取得 BindingSource

IsOptional

取得值,指出參數是否參與 ASP.NET Web API動作多載。 如果 true 為 ,則參數不會參與多載。 否則,它會執行此作業。

Name

模型名稱。

適用於