BindRequiredAttribute Kelas

Definisi

Menunjukkan bahwa properti diperlukan untuk pengikatan model. Saat diterapkan ke properti, sistem pengikatan model memerlukan nilai untuk properti tersebut. Saat diterapkan ke jenis, sistem pengikatan model memerlukan nilai untuk semua properti yang ditentukan jenis.

public ref class BindRequiredAttribute sealed : Microsoft::AspNetCore::Mvc::ModelBinding::BindingBehaviorAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class BindRequiredAttribute : Microsoft.AspNetCore.Mvc.ModelBinding.BindingBehaviorAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindRequiredAttribute = class
    inherit BindingBehaviorAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type BindRequiredAttribute = class
    inherit BindingBehaviorAttribute
Public NotInheritable Class BindRequiredAttribute
Inherits BindingBehaviorAttribute
Warisan
BindRequiredAttribute
Atribut

Konstruktor

BindRequiredAttribute()

Menginisialisasi instans baru BindRequiredAttribute .

Properti

Behavior

BindingBehavior Mendapatkan untuk diterapkan.

(Diperoleh dari BindingBehaviorAttribute)

Berlaku untuk