Bagikan melalui


BindNeverAttribute Kelas

Definisi

Menunjukkan bahwa properti harus dikecualikan dari pengikatan model. Saat diterapkan ke properti, sistem pengikatan model mengecualikan properti tersebut. Saat diterapkan ke jenis, sistem pengikatan model mengecualikan semua properti yang ditentukan jenis.

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

Konstruktor

BindNeverAttribute()

Menginisialisasi instans baru BindNeverAttribute .

Properti

Behavior

BindingBehavior Mendapatkan untuk diterapkan.

(Diperoleh dari BindingBehaviorAttribute)

Berlaku untuk