This documentation is archived and is not being maintained.

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

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

[Visual Basic]
Public Default ReadOnly Property Item( _
   ByVal index As Integer _
) As Byte
[C#]
public byte this[
 int index
] {get;}
[C++]
public: __property unsigned char get_Item(
 int index
);
[JScript]
returnValue = OracleBinaryObject.Item(index);
-or-
returnValue = OracleBinaryObject(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 OracleNullValueException, 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

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

Show: