プライマリ・コンテンツに移動
Oracle® Data Provider for .NET開発者ガイド
ODAC 12.2c リリース1 (12.2.0.1) for Microsoft Windows
E88311-03
目次へ移動
目次
索引へ移動
索引

前
次

Item

このプロパティでは、索引を使用して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]); 
  }
}