Partager via


SqlCeResultSet.SetBytes Method

Copie une longueur d'octets 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 (dans system.data.sqlserverce.dll)

Syntaxe

'Déclaration
Public Sub SetBytes ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
)
public void SetBytes (
    int ordinal,
    long dataIndex,
    byte[] buffer,
    int bufferIndex,
    int length
)
public:
void SetBytes (
    int ordinal, 
    long long dataIndex, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
)
public void SetBytes (
    int ordinal, 
    long dataIndex, 
    byte[] buffer, 
    int bufferIndex, 
    int length
)
public function SetBytes (
    ordinal : int, 
    dataIndex : long, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
)

Paramètres

  • ordinal
    Position ordinale de la colonne à définir.
  • dataIndex
    Emplacement dans la colonne auquel commencer la copie des données.
  • buffer
    Mémoire tampon qui contient les données à copier.
  • bufferIndex
    Offset de la mémoire tampon à partir duquel copier les données.
  • length
    Nombre maximal d'octets à copier.

Remarques

La colonne sous-jacente doit être de type binary, varbinary ou image.

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.

Sécurité des threads

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme sûrs.

Plateformes

Plateformes de développement

Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Informations sur la version
.NET Framework et NET Compact Framework
Pris en charge dans 3.5
.NET Framework
Pris en charge dans 3.0
.NET Compact Framework et .Net Framework
Pris en charge dans 2.0

Voir aussi

Référence

SqlCeResultSet Class
SqlCeResultSet Members
System.Data.SqlServerCe Namespace