TraceReader.GetChars 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从缓冲区偏移量开始,从指定的列位置获取字符数组值。
重载
GetChars(Int32, Char[], Int32, Int32, Int32) |
从指定的列位置处的记录获取字符数组值。 |
GetChars(Int32, Int64, Char[], Int32, Int32) |
从指定的列位置处的记录获取字符数组值。 |
GetChars(Int32, Char[], Int32, Int32, Int32)
从指定的列位置处的记录获取字符数组值。
public:
int GetChars(int ordinal, cli::array <char> ^ buffer, int length, int bufferoffset, int fieldoffset);
public int GetChars (int ordinal, char[] buffer, int length, int bufferoffset, int fieldoffset);
member this.GetChars : int * char[] * int * int * int -> int
Public Function GetChars (ordinal As Integer, buffer As Char(), length As Integer, bufferoffset As Integer, fieldoffset As Integer) As Integer
参数
- buffer
- Char[]
一个 System.UInt8 数组,该数组指定要将字符数组读入的缓冲区。
返回
一个 int32 值,该值指定数组中返回的字符数。
示例
适用于
GetChars(Int32, Int64, Char[], Int32, Int32)
从指定的列位置处的记录获取字符数组值。
public:
virtual long GetChars(int ordinal, long fieldoffset, cli::array <char> ^ buffer, int bufferoffset, int length);
public long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length);
abstract member GetChars : int * int64 * char[] * int * int -> int64
override this.GetChars : int * int64 * char[] * int * int -> int64
Public Function GetChars (ordinal As Integer, fieldoffset As Long, buffer As Char(), bufferoffset As Integer, length As Integer) As Long
参数
返回
一个指定在数组中返回的字符数的 Int64 值。