System::String::CopyTo 方法

String::CopyTo method

将字符串字符复制到现有数组元素中。不进行大小调整。

void System::String::CopyTo(int sourceIndex, const ArrayPtr<char_t> &destination, int destinationIndex, int count) const
参数类型描述
sourceIndexint字符串中开始读取的索引。
destinationconst ArrayPtr<char_t>&目标数组。
destinationIndexint数组中开始写入的索引。
countint要复制的字符数。

另见