Export (0) Print
Expand All

IDataErrorInfo.Item Property

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

Namespace:  System.ComponentModel
Assembly:  System (in System.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.

Silverlight

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.

Community Additions

ADD
Show:
© 2014 Microsoft