OracleBinary.Item[Int32] 属性
定义
从 Value 属性获取单字节,该属性位于整数参数 index 指示的位置。Gets the single byte from the Value property located at the position indicated by the integer parameter, index. 如果 index 指示一个超出字节数组结尾的位置,则会引发一个异常。If index indicates a position beyond the end of the byte array, an exception is raised.
public:
property System::Byte default[int] { System::Byte get(int index); };
public byte this[int index] { get; }
member this.Item(int) : byte
Default Public ReadOnly Property Item(index As Integer) As Byte
参数
- index
- Int32
要检索的字节的位置。The position of the byte to be retrieved.
属性值
位于整数参数指示的位置的字节。The byte located at the position indicated by the integer parameter.
注解
若要避免引发 OracleNullValueException ,请 IsNull 在读取之前始终检查属性和 Length 属性 this 。To avoid raising an OracleNullValueException, always check the IsNull property and the Length property before reading this.