Udostępnij za pośrednictwem


Metoda AdomdDataReader.GetBytes

To element członkowski jest zarezerwowana do użytku w przyszłości.

Przestrzeń nazw:  Microsoft.AnalysisServices.AdomdClient
Zestaw:  Microsoft.AnalysisServices.AdomdClient (w Microsoft.AnalysisServices.AdomdClient.dll)

Składnia

'Deklaracja
Public Function GetBytes ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Long
'Użycie
Dim instance As AdomdDataReader
Dim ordinal As Integer
Dim dataIndex As Long
Dim buffer As Byte()
Dim bufferIndex As Integer
Dim length As Integer
Dim returnValue As Long

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

Parametry

  • ordinal
    Typ: System.Int32
    Od zera Pozycja porządkowa kolumna, które mają zostać pobrane.
  • dataIndex
    Typ: System.Int64
    Indeksu kolumna, z którego ma rozpocząć odczytywanie danych.
  • buffer
    Typ: array<System.Byte[]
    Bufor, do którego odczytu strumienia bajtów.
  • bufferIndex
    Typ: System.Int32
    Indeks od zera w buforze od rozpoczęcia zapisywania danych.
  • length
    Typ: System.Int32
    Liczba bajtów do odczytu z kolumna.

Wartość zwracana

Typ: System.Int64
A długi zawiera liczbę bajtów faktycznie odczytanych z kolumna.

Implementacje

IDataRecord.GetBytes(Int32, Int64, array<Byte[], Int32, Int32)

Wyjątki

Wyjątek Warunek
System.NotSupportedException

Metoda jest wywoływana.