| Oracle® Data Provider for .NET開発者ガイド ODAC 12.2c リリース1 (12.2.0.1) for Microsoft Windows E88311-03 |
|
![]() 前 |
![]() 次 |
このプロパティでは、索引を使用してOracleBinary構造の特定のbyteを取得します。
宣言
// C#
public byte this[int index] {get;}
プロパティ値
指定された索引のバイト
例外
OracleNullValueException - 現行インスタンスにはNULL値があります。
例
// C#
using System;
using Oracle.DataAccess.Types;
class ItemSample
{
static void Main(string[] args)
{
OracleBinary binary = new OracleBinary(new byte[] {1,2,3,4});
// Prints the value 4
Console.WriteLine(binary[binary.Length - 1]);
}
}