BindRequiredAttribute Sınıf

Tanım

Model bağlama için bir özelliğin gerekli olduğunu gösterir. Bir özelliğe uygulandığında, model bağlama sistemi bu özellik için bir değer gerektirir. Bir türe uygulandığında, model bağlama sistemi, türünün tanımladığı tüm özellikler için değerler gerektirir.

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
Devralma
BindRequiredAttribute
Öznitelikler

Oluşturucular

BindRequiredAttribute()

Yeni bir BindRequiredAttribute örneği başlatır.

Özellikler

Behavior

Uygulanacak öğesini alır BindingBehavior .

(Devralındığı yer: BindingBehaviorAttribute)

Şunlara uygulanır