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

Возвращает значение, указывающее, участвует ли параметр в перегрузке веб-API ASP.NET действий. Если trueзадано значение , параметр не участвует в перегрузке. В противном случае это так.

Name

Имя модели.

Применяется к