IDataErrorInfo.Item Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a message that describes any validation errors for the specified property or column name.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)


ReadOnly Property Item ( _
    columnName As String _
) As String
string this[
    string columnName
] { get; }


  • columnName
    Type: System.String
    The name of the property or column to retrieve validation errors for.

Property Value

Type: System.String
The validation error on the specified property; or nulla null reference (Nothing in Visual Basic) or Empty, if no errors are present.


Use the Item property to get a single validation error message for a specified property or column. This message can represent multiple errors. If you want to represent multiple errors by using multiple custom error objects, implement the INotifyDataErrorInfo interface instead.


For an example of an implementation of this property, see the IDataErrorInfo class overview.

Version Information


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.