Method GetErrorsCollection
GetErrorsCollection(string?)
Gets the validation errors for this control and its child controls.
public virtual IEnumerable<object> GetErrorsCollection(string? propertyName = null)Parameters
- propertyNamestring
- The name of the property to retrieve validation errors for; or - nullor Empty, to retrieve entity-level errors.
Returns
- IEnumerable<object>
- The validation errors for this control and its child controls. 
Remarks
This is the same as GetErrors(string?) but returns IEnumerable<T>.