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.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

void GetPropertyError(
    string propertyName,
    ErrorInfo info
)

Parameters

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.

Remarks

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