Bagikan melalui


ValidateNeverAttribute.ShouldValidateEntry Metode

Definisi

Mendapatkan indikasi apakah entry harus divalidasi.

public:
 virtual bool ShouldValidateEntry(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationEntry entry, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationEntry parentEntry);
public bool ShouldValidateEntry (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry entry, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry parentEntry);
abstract member ShouldValidateEntry : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry -> bool
override this.ShouldValidateEntry : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry -> bool
Public Function ShouldValidateEntry (entry As ValidationEntry, parentEntry As ValidationEntry) As Boolean

Parameter

entry
ValidationEntry

ValidationEntry untuk memeriksa.

parentEntry
ValidationEntry

ValidationEntry berisi entry.

Mengembalikan

true jika entry harus divalidasi; false jika tidak.

Penerapan

Berlaku untuk