Aracılığıyla paylaş


ModelBinderAttribute Sınıf

Tanım

Bağlama için kullanılacak model adını veya türünü IModelBinder belirtebilen bir öznitelik.

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
Devralma
ModelBinderAttribute
Türetilmiş
Öznitelikler
Uygulamalar

Oluşturucular

ModelBinderAttribute()

yeni bir örneğini ModelBinderAttributebaşlatır.

ModelBinderAttribute(Type)

yeni bir örneğini ModelBinderAttributebaşlatır.

Özellikler

BinderType

her Type ikisini de IModelBinderuygulayan bir .

BindingSource

BindingSource öğesini alır.

Name

Model adı.

Şunlara uygulanır