This documentation is archived and is not being maintained.

IDataErrorInfo.Item Property

Gets the error message for the property with the given name.

[C#] In C#, this property is the indexer for the IDataErrorInfo class.

[Visual Basic]
Default ReadOnly Property Item( _
   ByVal columnName As String _
) As String
string this[
   string columnName
] {get;}
__property String* get_Item(
 String* columnName
returnValue = IDataErrorInfoObject.Item(columnName);
returnValue = IDataErrorInfoObject(columnName);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

The name of the property whose error message to get.

Parameters [Visual Basic, C#, C++]

The name of the property whose error message to get.

Property Value

The error message for the property. The default is an empty string ("").


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IDataErrorInfo Interface | IDataErrorInfo Members | System.ComponentModel Namespace