| Oracle® Data Provider for .NET開発者ガイド ODAC 12.2c リリース1 (12.2.0.1) for Microsoft Windows E88311-03 |
|
![]() 前 |
![]() 次 |
このプロパティではバイナリ・データの長さを戻します。
宣言
// C#
public int length {get;}
プロパティ値
バイナリ・データの長さ
例外
OracleNullValueException - 現行インスタンスにはNULL値があります。
例
// C#
using System;
using Oracle.DataAccess.Types;
class LengthSample
{
static void Main(string[] args)
{
OracleBinary binary = new OracleBinary(new byte[] {1,2,3,4});
// Prints the value 4
Console.WriteLine(binary.Length);
}
}