AbstractModelCollection<(Of <(<'T, TPropertyTracking>)>)>..::..OnValidateProperty Method

Override this method to add imperative validation at the property level.

Namespace:  Tortuga.Anchor.Modeling.Internals
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


protected virtual void OnValidateProperty(
	string propertyName,
	ValidationResultCollection results
)
Protected Overridable Sub OnValidateProperty ( _
	propertyName As String, _
	results As ValidationResultCollection _
)

Parameters

propertyName
Type: String
The name of the property being validated.
results
Type: Tortuga.Anchor.DataAnnotations..::..ValidationResultCollection
A collection of the declarative validation errors. You may add and remove errors from this collection.