Export (0) Print
Expand All

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
[C#]
string this[
   string columnName
] {get;}
[C++]
__property String* get_Item(
 String* columnName
);
[JScript]
returnValue = IDataErrorInfoObject.Item(columnName);
-or-
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]

columnName
The name of the property whose error message to get.

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

columnName
The name of the property whose error message to get.

Property Value

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

Requirements

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

Show:
© 2014 Microsoft