Bagikan melalui


IValidatableObject.Validate(ValidationContext) Metode

Definisi

Menentukan apakah objek yang ditentukan valid.

public:
 System::Collections::Generic::IEnumerable<System::ComponentModel::DataAnnotations::ValidationResult ^> ^ Validate(System::ComponentModel::DataAnnotations::ValidationContext ^ validationContext);
public System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate (System.ComponentModel.DataAnnotations.ValidationContext validationContext);
abstract member Validate : System.ComponentModel.DataAnnotations.ValidationContext -> seq<System.ComponentModel.DataAnnotations.ValidationResult>
Public Function Validate (validationContext As ValidationContext) As IEnumerable(Of ValidationResult)

Parameter

validationContext
ValidationContext

Konteks validasi.

Mengembalikan

Koleksi yang menyimpan informasi validasi gagal.

Berlaku untuk