Compartilhar via


Método SqlCeUpdatableRecord.GetChars

Copia um comprimento de chars no buffer, iniciando em uma posição especificada no campo especificado.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (em System.Data.SqlServerCe.dll)

Sintaxe

'Declaração
Public Function GetChars ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Char(), _
    bufferIndex As Integer, _
    length As Integer _
) As Long
'Uso
Dim instance As SqlCeUpdatableRecord
Dim ordinal As Integer
Dim dataIndex As Long
Dim buffer As Char()
Dim bufferIndex As Integer
Dim length As Integer
Dim returnValue As Long

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

Parâmetros

  • ordinal
    Tipo: System.Int32
    A posição ordinal do campo do qual os dados devem ser recuperados.
  • dataIndex
    Tipo: System.Int64
    O deslocamento (em caracteres) no campo do qual deve ser iniciada a cópia.
  • buffer
    Tipo: array<System.Char[]
    O buffer no qual os dados devem ser copiados.
  • bufferIndex
    Tipo: System.Int32
    O deslocamento no buffer do qual deve ser iniciada a cópia.
  • length
    Tipo: System.Int32
    O número máximo de bytes a serem copiados.

Valor de retorno

Tipo: System.Int64

Implementa

IDataRecord.GetChars(Int32, Int64, array<Char[], Int32, Int32)

Consulte também

Referência

SqlCeUpdatableRecord Classe

Namespace System.Data.SqlServerCe