Skip to main content

IDXDataErrorInfo.GetPropertyError(String, ErrorInfo) Method

When implemented by a class, this method returns information on an error associated with a specific business object’s property.

Namespace: DevExpress.XtraEditors.DXErrorProvider

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


void GetPropertyError(
    string propertyName,
    ErrorInfo info


Name Type Description
propertyName String

A string that identifies the name of the property for which information on an error is to be returned.

info ErrorInfo

An ErrorInfo object that contains information on an error.


The GetPropertyError method must return information on an error associated with the specified property.

To set the error text and the type of the error, assign the corresponding values to the ErrorInfo.ErrorText and ErrorInfo.ErrorType properties.

See Also