ModelBinderAttribute Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bağlama için kullanılacak bir model adı veya türü belirtebileceğiniz bir özniteliği IModelBinder .
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
- Öznitelikler
- Uygulamalar
Oluşturucular
| ModelBinderAttribute() |
Yeni bir örneğini başlatır ModelBinderAttribute . |
| ModelBinderAttribute(Type) |
Yeni bir örneğini başlatır ModelBinderAttribute . |
Özellikler
| BinderType |
ya Type da uygulayan IModelBinder bir . |
| BindingSource |
BindingSource öğesini alır. |
| Name |
Model adı. |