Item Property
Collapse the table of content
Expand the table of content

IDataErrorInfo.Item Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

string this[
	string columnName
] { get; }

Parameters

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 null 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft