Partager via


Méthode SqlCeResultSet.SetChars

Copie une longueur de caractères de la mémoire tampon spécifiée dans la colonne indiquée, en démarrant à l'emplacement spécifié dans ce champ.

Espace de noms :  System.Data.SqlServerCe
Assembly :  System.Data.SqlServerCe (en System.Data.SqlServerCe.dll)

Syntaxe

'Déclaration
Public Sub SetChars ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Char(), _
    bufferIndex As Integer, _
    length As Integer _
)
'Utilisation
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim dataIndex As Long
Dim buffer As Char()
Dim bufferIndex As Integer
Dim length As Integer

instance.SetChars(ordinal, dataIndex, _
    buffer, bufferIndex, length)
public void SetChars(
    int ordinal,
    long dataIndex,
    char[] buffer,
    int bufferIndex,
    int length
)
public:
void SetChars(
    int ordinal, 
    long long dataIndex, 
    array<wchar_t>^ buffer, 
    int bufferIndex, 
    int length
)
member SetChars : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:char[] * 
        bufferIndex:int * 
        length:int -> unit 
public function SetChars(
    ordinal : int, 
    dataIndex : long, 
    buffer : char[], 
    bufferIndex : int, 
    length : int
)

Paramètres

  • ordinal
    Type : System.Int32
    Position ordinale de la colonne à définir.
  • dataIndex
    Type : System.Int64
    Emplacement dans la colonne auquel commencer la copie des données.
  • buffer
    Type : array<System.Char[]
    Mémoire tampon qui contient les données à copier.
  • bufferIndex
    Type : System.Int32
    Offset de la mémoire tampon à partir duquel copier les données.
  • length
    Type : System.Int32
    Nombre maximal d'octets à copier.

Notes

La colonne sous-jacente doit être de type char, nchar, varchar, nvarchar, text ou ntext.

Une exception est levée si la ligne n'est pas marquée comme modifiable.

Une exception est levée si aucun champ n'existe à la position spécifiée.

Voir aussi

Référence

SqlCeResultSet Classe

Espace de noms System.Data.SqlServerCe