Bagikan melalui


Validator.ValidateProperty Metode

Definisi

Melakukan validasi pada properti dan mengembalikan ValidationErrorCollection yang berisi hasil validasi tersebut.

protected public:
 System::Workflow::ComponentModel::Compiler::ValidationErrorCollection ^ ValidateProperty(System::Reflection::PropertyInfo ^ propertyInfo, System::Object ^ propertyOwner, System::Object ^ propertyValue, System::Workflow::ComponentModel::Compiler::ValidationManager ^ manager);
protected internal System.Workflow.ComponentModel.Compiler.ValidationErrorCollection ValidateProperty (System.Reflection.PropertyInfo propertyInfo, object propertyOwner, object propertyValue, System.Workflow.ComponentModel.Compiler.ValidationManager manager);
member this.ValidateProperty : System.Reflection.PropertyInfo * obj * obj * System.Workflow.ComponentModel.Compiler.ValidationManager -> System.Workflow.ComponentModel.Compiler.ValidationErrorCollection
Protected Friend Function ValidateProperty (propertyInfo As PropertyInfo, propertyOwner As Object, propertyValue As Object, manager As ValidationManager) As ValidationErrorCollection

Parameter

propertyInfo
PropertyInfo

pada PropertyInfo properti subjek.

propertyOwner
Object

Pemilik properti .

propertyValue
Object

Nilai properti .

manager
ValidationManager

A ValidationManager untuk operasi ini.

Mengembalikan

ValidationErrorCollection yang berisi hasil validasi tersebut.

Keterangan

Jika tidak ada kesalahan yang dihasilkan dari validasi, kosong ValidationErrorCollection akan dikembalikan.

Berlaku untuk