ModelBinderAttribute Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Atribut, který může určit název modelu nebo typ, který IModelBinder se má použít pro vazbu.
public ref class ModelBinderAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBinderTypeProviderMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelNameProvider
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)]
public class ModelBinderAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)>]
type ModelBinderAttribute = class
inherit Attribute
interface IModelNameProvider
interface IBinderTypeProviderMetadata
interface IBindingSourceMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)>]
type ModelBinderAttribute = class
inherit Attribute
interface IBinderTypeProviderMetadata
interface IBindingSourceMetadata
interface IModelNameProvider
Public Class ModelBinderAttribute
Inherits Attribute
Implements IBinderTypeProviderMetadata, IModelNameProvider
- Dědičnost
-
ModelBinderAttribute
- Atributy
- Implementuje
Konstruktory
| ModelBinderAttribute() |
Inicializuje novou instanci ModelBinderAttribute . |
| ModelBinderAttribute(Type) |
Inicializuje novou instanci ModelBinderAttribute . |
Vlastnosti
| BinderType |
, Type Který implementuje buď IModelBinder . |
| BindingSource |
Získá BindingSource . |
| Name |
Název modelu |