طريقة System::String::CopyTo

String::CopyTo method

ينسخ أحرف السلسلة إلى عناصر مصفوفة موجودة. لا يتم إجراء تغيير حجم.

void System::String::CopyTo(int sourceIndex, const ArrayPtr<char_t> &destination, int destinationIndex, int count) const
ParameterTypeالوصف
sourceIndexintفهرس داخل السلسلة للبدء بالقراءة منه.
destinationconst ArrayPtr<char_t>&مصفوفة الوجهة.
destinationIndexintفهرس داخل المصفوفة للبدء بالكتابة منه.
countintعدد الأحرف التي سيتم نسخها.

انظر أيضًا