This documentation is archived and is not being maintained.

OracleString.Item Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets the single byte from the Value property located at the position indicated by the integer parameter, index. If index indicates a position beyond the end of the byte array, an exception is raised. This property is read-only.

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

[Visual Basic]
Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As Char
[C#]
public char this[
 int index
] {get;}
[C++]
public: __property __wchar_t get_Item(
 int index
);
[JScript]
returnValue = OracleStringObject.Item(index);
-or-
returnValue = OracleStringObject(index);

[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]

index
The position of the byte to be retrieved.

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

index
The position of the byte to be retrieved.

Property Value

The byte located at the position indicated by the integer parameter.

Remarks

To avoid raising an exception, always check the IsNull property and the Length property before reading this.

Requirements

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

.NET Framework Security: 

See Also

OracleString Structure | OracleString Members | System.Data.OracleClient Namespace

Show: