SqlCeResultSet.SetChars 方法

从此字段中指定的位置开始,将一定长度的字符从指定的缓冲区复制到指定的列。

命名空间: System.Data.SqlServerCe
程序集: System.Data.SqlServerCe(在 system.data.sqlserverce.dll 中)

语法

声明
Public Sub SetChars ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Char(), _
    bufferIndex As Integer, _
    length As Integer _
)
用法
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
)
public void SetChars (
    int ordinal, 
    long dataIndex, 
    char[] buffer, 
    int bufferIndex, 
    int length
)
public function SetChars (
    ordinal : int, 
    dataIndex : long, 
    buffer : char[], 
    bufferIndex : int, 
    length : int
)
不适用。

参数

  • ordinal
    要设置的列的序号位置。
  • dataIndex
    列中开始将数据复制到的位置。
  • buffer
    包含要复制的数据的缓冲区。
  • bufferIndex
    缓冲区内将从其开始复制数据的偏移量。
  • length
    要复制的最大字节数。

备注

基础列必须属于 char、nchar、varchar、nvarchar、text 或 ntext 类型。

如果未将行标记为可更新的,则会引发异常。

如果在指定的位置不存在任何字段,则会引发异常。

平台

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。

版本信息

.NET Framework

受以下版本支持:3.0

.NET Compact Framework

受以下版本支持:2.0

请参见

参考

SqlCeResultSet 类
SqlCeResultSet 成员
System.Data.SqlServerCe 命名空间