共用方式為


AdomdDataReader.GetBytes 方法

這個成員保留供未來使用。

命名空間:  Microsoft.AnalysisServices.AdomdServer
組件:  msmgdsrv (在 msmgdsrv.dll 中)

語法

'宣告
Public Function GetBytes ( _
    i As Integer, _
    fieldOffset As Long, _
    buffer As Byte(), _
    bufferoffset As Integer, _
    length As Integer _
) As Long
'用途
Dim instance As AdomdDataReader 
Dim i As Integer 
Dim fieldOffset As Long 
Dim buffer As Byte()
Dim bufferoffset As Integer 
Dim length As Integer 
Dim returnValue As Long 

returnValue = instance.GetBytes(i, fieldOffset, _
    buffer, bufferoffset, length)
public long GetBytes(
    int i,
    long fieldOffset,
    byte[] buffer,
    int bufferoffset,
    int length
)
public:
virtual long long GetBytes(
    int i, 
    long long fieldOffset, 
    array<unsigned char>^ buffer, 
    int bufferoffset, 
    int length
) sealed
abstract GetBytes : 
        i:int * 
        fieldOffset:int64 * 
        buffer:byte[] * 
        bufferoffset:int * 
        length:int -> int64  
override GetBytes : 
        i:int * 
        fieldOffset:int64 * 
        buffer:byte[] * 
        bufferoffset:int * 
        length:int -> int64
public final function GetBytes(
    i : int, 
    fieldOffset : long, 
    buffer : byte[], 
    bufferoffset : int, 
    length : int
) : long

參數

  • i
    型別:Int32
    要擷取的資料行之以零為基底序數位置。
  • fieldOffset
    型別:Int64
    資料行中以零為基底的索引,從這裡開始讀取資料。
  • buffer
    型別:array<Byte[]
    要讀入位元組資料流的緩衝區。
  • bufferoffset
    型別:Int32
    緩衝區中以零為基底的索引,從這裡開始寫入資料。
  • length
    型別:Int32
    要從資料行讀取的位元組數。

傳回值

型別:Int64
Long ,其中包含實際從資料列讀取的位元組數。

實作

IDataRecordGetBytes(Int32, Int64, Byte, Int32, Int32)

例外狀況

例外狀況 條件
[NotSupportedException]

呼叫了此方法。 如需有關此例外的詳細資訊,請參閱<NotSupportedException Class>。

請參閱

參考

AdomdDataReader 類別

Microsoft.AnalysisServices.AdomdServer 命名空間