Bagikan melalui


ModelBinderAttribute Kelas

Definisi

Mewakili atribut yang digunakan untuk mengaitkan jenis model ke jenis pembuat model.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Parameter | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public sealed class ModelBinderAttribute : System.Web.Mvc.CustomModelBinderAttribute
type ModelBinderAttribute = class
    inherit CustomModelBinderAttribute
Public NotInheritable Class ModelBinderAttribute
Inherits CustomModelBinderAttribute
Warisan
ModelBinderAttribute
Atribut

Konstruktor

ModelBinderAttribute(Type)

Menginisialisasi instans baru kelas ModelBinderAttribute.

Properti

BinderType

Mendapatkan atau mengatur jenis pengikat.

Metode

GetBinder()

Mengambil instans pengikat model.

Berlaku untuk