Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere .NET API 参考 » 用于客户端的 QAnywhere .NET (.NET 2.0) » QABinaryMessage 接口

 

ReadBinary 方法

从 QABinaryMessage 实例主体的未读部分开始读取指定数量的字节。

语法
Visual Basic
Public Function ReadBinary( _
   ByVal bytes As Byte(), _
   ByVal offset As Integer, _
   ByVal len As Integer _
) As Integer
C#
public int ReadBinary(
   byte[] bytes,
   int offset, 
   int len
);
参数
  • bytes   包含所读字节的字节数组。

  • offset   目标数组的起始偏移。

  • len   要读取的最大字节数。

返回值

从消息主体读取的字节数。

异常
  • QAException 类- 如果读取值时发生转换错误或没有其它输入,则抛出。

另请参见